[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Dec 15 18:15:19 CET 2004


CVS commit by staikos: 

timer fixlets


  M +7 -7      kst2dplot.cpp   1.326


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.325:1.326
@@ -5144,5 +5144,5 @@ void Kst2DPlot::plotCurves(QPainter& p,
 #ifdef PLOTBENCH
   QTime bench_time, benchtmp;
-  int b_1, b_2, b_3, b_4;
+  int b_1 = 0, b_2 = 0, b_3 = 0, b_4 = 0;
 #endif
   for (int i_curve = 0; i_curve < (int)Curves.count(); i_curve++) {
@@ -5718,8 +5718,8 @@ void Kst2DPlot::plotCurves(QPainter& p,
     printf("Plotting curve %d: %ims\n", i_curve, i);
     printf("    Without locks: %ims\n", b_4);
-    printf("            Lines: %ims\n", b_1);
-    printf("             Bars: %ims\n", b_2 - b_1);
-    printf("           Points: %ims\n", b_3 - b_2);
-    printf("           Errors: %ims\n", b_4 - b_3);
+    if (b_1 > 0)       printf("            Lines: %ims\n", b_1);
+    if (b_2 - b_1 > 0) printf("             Bars: %ims\n", b_2 - b_1);
+    if (b_3 - b_2 > 0) printf("           Points: %ims\n", b_3 - b_2);
+    if (b_4 - b_3 > 0) printf("           Errors: %ims\n", b_4 - b_3);
 #endif
   } // next curve





More information about the Kst mailing list