diff -ur ../scidavis-1.25-orig/libscidavis/src/ApplicationWindow.cpp ./libscidavis/src/ApplicationWindow.cpp --- ../scidavis-1.25-orig/libscidavis/src/ApplicationWindow.cpp 2019-03-05 08:49:55.000000000 +0900 +++ ./libscidavis/src/ApplicationWindow.cpp 2019-04-01 00:27:10.000000000 +0900 @@ -5173,7 +5173,7 @@ if (w->inherits("Table")){ QStringList labels=((Table *)w)->colNames(); - if (labels.contains(newName)>0){ + if (labels.contains(newName)!=NULL){ QMessageBox::critical(this, tr("Error"), tr("The table name must be different from the names of its columns!")+"
"+tr("Please choose another name!"));
return false;
@@ -7849,13 +7849,13 @@
Graph *g = (Graph *)widget;
onPlot = g->curvesList();
onPlot = onPlot.filter(QRegExp("^"+name+"_.*"));
- if (onPlot.count() > 0 && plots.contains(w->name()) <= 0 )
+ if (onPlot.count() > 0 && plots.contains(w->name()) == NULL )
plots << w->name();
}
}
else if (w->inherits("Graph3D"))
{
- if ((((Graph3D*)w)->formula()).contains(name,Qt::CaseSensitive) && plots.contains(w->name())<=0)
+ if ((((Graph3D*)w)->formula()).contains(name,Qt::CaseSensitive) && plots.contains(w->name())==NULL)
plots << w->name();
}
}
@@ -7874,7 +7874,7 @@
for (int j=0; j