diff options
Diffstat (limited to 'math/qtiplot/files/patch-qtiplot_src_table_Table.cpp')
-rw-r--r-- | math/qtiplot/files/patch-qtiplot_src_table_Table.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/math/qtiplot/files/patch-qtiplot_src_table_Table.cpp b/math/qtiplot/files/patch-qtiplot_src_table_Table.cpp deleted file mode 100644 index bf6465f11f27..000000000000 --- a/math/qtiplot/files/patch-qtiplot_src_table_Table.cpp +++ /dev/null @@ -1,27 +0,0 @@ -Description: if you don't initialize the "i" variable, or initialize it to 0.0 - qtiplot won't let you set the column values using muparser. -Author: Scott Howard <showard@debian.org> -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707736 - -Index: qtiplot/qtiplot/src/table/Table.cpp -=================================================================== ---- qtiplot/src/table/Table.cpp.orig 2011-09-13 11:20:29 UTC -+++ qtiplot/src/table/Table.cpp -@@ -564,7 +564,7 @@ bool Table::muParserCalculate(int col, i - QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); - - muParserScript *mup = new muParserScript(scriptEnv, cmd, this, QString("<%1>").arg(colName(col))); -- double *r = mup->defineVariable("i"); -+ double *r = mup->defineVariable("i",startRow + 1.0); - mup->defineVariable("j", (double)col); - mup->defineVariable("sr", startRow + 1.0); - mup->defineVariable("er", endRow + 1.0); -@@ -1080,7 +1080,7 @@ void Table::setColName(int col, const QS - if (enumerateRight) - newLabel += QString::number(n); - -- if (col_label.contains(newLabel) > 0){ -+ if (col_label.contains(newLabel)){ - if (warn){ - QMessageBox::critical(0, tr("QtiPlot - Error"), - tr("There is already a column called : <b>"+newLabel+"</b> in table <b>"+caption+"</b>!<p>Please choose another name!")); |