diff options
| author | Alexander Leidinger <netchild@FreeBSD.org> | 2004-03-30 17:02:58 +0000 |
|---|---|---|
| committer | Alexander Leidinger <netchild@FreeBSD.org> | 2004-03-30 17:02:58 +0000 |
| commit | 7ad012e1d9fc4e62211b50c38b45e788773e4611 (patch) | |
| tree | ed1a8e636328bba0fe70f24f4ac79950a778c364 /math/xgfe/files/patch-legendOp.cpp | |
| parent | Unbeak for 5.005 (diff) | |
Unfortunately, the recent changes to math/xgfe (PR 59024) broke its
compilation on FreeBSD 4 with GCC 2.95.4:
http://bento.freebsd.org/errorlogs/i386-4-latest/xgfe-2.1.log
The patch below fixes this.
During testing it on FreeBSD 4 and 5 with QT 3.3.1 I noticed that the
Advanced -> Multiple Files and Advanced -> Multiple Functions dialogs
were broken. I'm not sure if this is a new breakage with QT 3.3.1 or
if I didn't notice these when testing the previous patch on FreeBSD 5
with QT 3.2.1. Anyway, these are also fixed and as a precaution
PORTREVISION is bumped.
The patch also adds SIZE info.
PR: 64390
Submitted by: Marius Strobl <marius@alchemy.franken.de>
Approved by: maintainer
Diffstat (limited to '')
| -rw-r--r-- | math/xgfe/files/patch-legendOp.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/math/xgfe/files/patch-legendOp.cpp b/math/xgfe/files/patch-legendOp.cpp index 4ed5ba4d177c..aaaa6682e6f7 100644 --- a/math/xgfe/files/patch-legendOp.cpp +++ b/math/xgfe/files/patch-legendOp.cpp @@ -8,44 +8,44 @@ diff -u legendOp.cpp.orig legendOp.cpp - string legendPositionXVal = positionXEdit->text(); - string legendPositionYVal = positionYEdit->text(); - string legendPositionZVal = positionZEdit->text(); -+ string legendPositionXVal = string(positionXEdit->text()); -+ string legendPositionYVal = string(positionYEdit->text()); -+ string legendPositionZVal = string(positionZEdit->text()); ++ string legendPositionXVal = positionXEdit->text().ascii(); ++ string legendPositionYVal = positionYEdit->text().ascii(); ++ string legendPositionZVal = positionZEdit->text().ascii(); gnuInt->setLegendPositionXVal(legendPositionXVal); gnuInt->setLegendPositionYVal(legendPositionYVal); gnuInt->setLegendPositionZVal(legendPositionZVal); - string justify = textJustifyList->currentText(); -+ string justify = string(textJustifyList->currentText()); ++ string justify = textJustifyList->currentText().ascii(); gnuInt->setLegendTextJustify(justify); - string reverse = reverseList->currentText(); -+ string reverse = string(reverseList->currentText()); ++ string reverse = reverseList->currentText().ascii(); gnuInt->setLegendReverse(reverse); - string box = boxList->currentText(); -+ string box = string(boxList->currentText()); ++ string box = boxList->currentText().ascii(); gnuInt->setLegendBox(box); - string linetype = lineTypeEdit->text(); -+ string linetype = string(lineTypeEdit->text()); ++ string linetype = lineTypeEdit->text().ascii(); gnuInt->setLegendLinetype(linetype); - string sample = sampleLengthEdit->text(); -+ string sample = string(sampleLengthEdit->text()); ++ string sample = sampleLengthEdit->text().ascii(); gnuInt->setLegendSampleLength(sample); - string spacing = spacingEdit->text(); -+ string spacing = string(spacingEdit->text()); ++ string spacing = spacingEdit->text().ascii(); gnuInt->setLegendSpacing(spacing); - string width = widthIncrementEdit->text(); -+ string width = string(widthIncrementEdit->text()); ++ string width = widthIncrementEdit->text().ascii(); gnuInt->setLegendWidthIncrement(width); - string title = legendTitleEdit->text(); -+ string title = string(legendTitleEdit->text()); ++ string title = legendTitleEdit->text().ascii(); gnuInt->setLegendTitle(title); QDialog::accept(); |
