aboutsummaryrefslogtreecommitdiffstats
path: root/math/xgfe/files/patch-multiFunc.cpp
blob: d1ded076a483bf98fbb98a9225c14f563c518b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- 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 = functionEdit->text().ascii();
 
   // insert function in list
   multiFuncList->insertItem(function.c_str(),0);
@@ -158,17 +158,17 @@
   if (multiFuncList->count() > 0)
   {
     // get function
-    string function = multiFuncList->currentText();
+    string function = multiFuncList->currentText().ascii();
 
     // get options
-    string style = funcStyleList->currentText();
+    string style = funcStyleList->currentText().ascii();
     
     // set options
     gnuInt->setMultiFuncStyleOption(function,style);
 
 
     // set title
-    string title = legendTitleEdit->text();
+    string title = legendTitleEdit->text().ascii();
     gnuInt->setMultiFuncLegendTitle(function, title);
 
     if (legendTitleDefaultButton->isChecked() == TRUE)
@@ -194,7 +194,7 @@
     multiFuncList->setCurrentItem(0);
     
     // get current function in combo box
-    string function = 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());