[Kst] extragear/graphics/kst/src/libkstapp

George Staikos staikos at kde.org
Tue Jun 20 20:51:09 CEST 2006


SVN commit 553328 by staikos:

initialize variable to avoid random behavior


 M  +2 -1      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #553327:553328
@@ -1775,6 +1775,7 @@
 void Kst2DPlot::getPrefixUnitsScale(bool isInterpreted, KstAxisInterpretation axisInterpretation, KstAxisDisplay axisDisplay, bool bLog, double logBase, double Min, double Max, double& range, double& scale, int& base, QString& strPrefix, QString& strUnits) {
   range = 1.0;
   scale = 1.0;
+  base = 60;
 
   if (isInterpreted) {
     // determine the time range
@@ -1858,7 +1859,7 @@
   uint uiShortestLength = 1000;
   uint length;
   int iShort = 0;
-  int base;
+  int base = 60;
   KstPlotLabel *tick_label;
 
   if (isX) {


More information about the Kst mailing list