aboutsummaryrefslogtreecommitdiff
path: root/math/xgfe/files/patch-multiFunc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math/xgfe/files/patch-multiFunc.cpp')
-rw-r--r--math/xgfe/files/patch-multiFunc.cpp29
1 files changed, 23 insertions, 6 deletions
diff --git a/math/xgfe/files/patch-multiFunc.cpp b/math/xgfe/files/patch-multiFunc.cpp
index 2286c6f0e1dc..d1ded076a483 100644
--- a/math/xgfe/files/patch-multiFunc.cpp
+++ b/math/xgfe/files/patch-multiFunc.cpp
@@ -1,12 +1,20 @@
-diff -u multiFunc.cpp.orig multiFunc.cpp
--- multiFunc.cpp.orig Sat Mar 21 04:26:33 1998
+++ multiFunc.cpp Thu Oct 30 21:42:04 2003
+@@ -76,7 +76,7 @@
+ if (multiFuncList->count() > 0)
+ {
+ // get current function
+- function = multiFuncList->currentText();
++ function = multiFuncList->currentText().ascii();
+
+ // get style option
+ string style = gnuInt->getMultiFuncStyleOption(function);
@@ -135,7 +135,7 @@
void multiFunc::insertNewFunction()
{
// get function in edit box
- string function = functionEdit->text();
-+ string function = string(functionEdit->text());
++ string function = functionEdit->text().ascii();
// insert function in list
multiFuncList->insertItem(function.c_str(),0);
@@ -15,11 +23,11 @@ diff -u multiFunc.cpp.orig multiFunc.cpp
{
// get function
- string function = multiFuncList->currentText();
-+ string function = string(multiFuncList->currentText());
++ string function = multiFuncList->currentText().ascii();
// get options
- string style = funcStyleList->currentText();
-+ string style = string(funcStyleList->currentText());
++ string style = funcStyleList->currentText().ascii();
// set options
gnuInt->setMultiFuncStyleOption(function,style);
@@ -27,7 +35,7 @@ diff -u multiFunc.cpp.orig multiFunc.cpp
// set title
- string title = legendTitleEdit->text();
-+ string title = string(legendTitleEdit->text());
++ string title = legendTitleEdit->text().ascii();
gnuInt->setMultiFuncLegendTitle(function, title);
if (legendTitleDefaultButton->isChecked() == TRUE)
@@ -36,7 +44,16 @@ diff -u multiFunc.cpp.orig multiFunc.cpp
// get current function in combo box
- string function = multiFuncList->currentText();
-+ string function = string(multiFuncList->currentText());
++ string function = multiFuncList->currentText().ascii();
int currentItem = multiFuncList->currentItem();
+@@ -211,7 +211,7 @@
+ multiFuncList->setCurrentItem(0);
+
+ // get function that is now current in combo box
+- function = multiFuncList->currentText();
++ function = multiFuncList->currentText().ascii();
+
+ // set edit box to current function
+ functionEdit->setText(function.c_str());