summaryrefslogtreecommitdiff
path: root/math/xgfe/files/patch-legendOp.cpp
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-03-06 22:57:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-03-06 22:57:48 +0000
commitd3c24d35b28931a1a81edb37b2ecb04497bb5402 (patch)
tree1c57506bdf87ab09eb437aa066de64bc51f30549 /math/xgfe/files/patch-legendOp.cpp
parentThe hostsentry port is unusable as shipped and requires additional (diff)
Update to xgfe 2.1, switch to QT 3, respect NOPORTDOCS, fix build
with gcc 3. Submitted by: Marius Strobl <marius@alchemy.franken.de> PR: ports/59024
Diffstat (limited to '')
-rw-r--r--math/xgfe/files/patch-legendOp.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/math/xgfe/files/patch-legendOp.cpp b/math/xgfe/files/patch-legendOp.cpp
new file mode 100644
index 000000000000..4ed5ba4d177c
--- /dev/null
+++ b/math/xgfe/files/patch-legendOp.cpp
@@ -0,0 +1,51 @@
+diff -u legendOp.cpp.orig legendOp.cpp
+--- legendOp.cpp.orig Mon Feb 23 23:36:08 1998
++++ legendOp.cpp Thu Oct 30 21:42:04 2003
+@@ -203,36 +203,36 @@
+ gnuInt->setLegendPositionBelow(0);
+
+
+- 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());
+
+ gnuInt->setLegendPositionXVal(legendPositionXVal);
+ gnuInt->setLegendPositionYVal(legendPositionYVal);
+ gnuInt->setLegendPositionZVal(legendPositionZVal);
+
+- string justify = textJustifyList->currentText();
++ string justify = string(textJustifyList->currentText());
+ gnuInt->setLegendTextJustify(justify);
+
+- string reverse = reverseList->currentText();
++ string reverse = string(reverseList->currentText());
+ gnuInt->setLegendReverse(reverse);
+
+- string box = boxList->currentText();
++ string box = string(boxList->currentText());
+ gnuInt->setLegendBox(box);
+
+- string linetype = lineTypeEdit->text();
++ string linetype = string(lineTypeEdit->text());
+ gnuInt->setLegendLinetype(linetype);
+
+- string sample = sampleLengthEdit->text();
++ string sample = string(sampleLengthEdit->text());
+ gnuInt->setLegendSampleLength(sample);
+
+- string spacing = spacingEdit->text();
++ string spacing = string(spacingEdit->text());
+ gnuInt->setLegendSpacing(spacing);
+
+- string width = widthIncrementEdit->text();
++ string width = string(widthIncrementEdit->text());
+ gnuInt->setLegendWidthIncrement(width);
+
+- string title = legendTitleEdit->text();
++ string title = string(legendTitleEdit->text());
+ gnuInt->setLegendTitle(title);
+
+ QDialog::accept();