|
From: <hp...@us...> - 2014-09-21 07:34:59
|
Revision: 1453
http://sourceforge.net/p/scidavis/svn/1453
Author: hpcoder
Date: 2014-09-21 07:34:53 +0000 (Sun, 21 Sep 2014)
Log Message:
-----------
Fix for ticket #193
Modified Paths:
--------------
branches/development/scidavis/src/PlotCurve.cpp
Modified: branches/development/scidavis/src/PlotCurve.cpp
===================================================================
--- branches/development/scidavis/src/PlotCurve.cpp 2014-09-17 06:40:34 UTC (rev 1452)
+++ branches/development/scidavis/src/PlotCurve.cpp 2014-09-21 07:34:53 UTC (rev 1453)
@@ -92,11 +92,11 @@
{
QString s = title().text();
QStringList lst = s.split("_", QString::SkipEmptyParts);
- if (lst[0] == oldName)
+ if (lst.size()>0 && lst[0] == oldName)
setTitle(newName + "_" + lst[1]);
lst = d_x_column.split("_", QString::SkipEmptyParts);
- if (lst[0] == oldName)
+ if (lst.size()>0 && lst[0] == oldName)
d_x_column = newName + "_" + lst[1];
}
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|