[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Mar 10 20:26:57 CET 2005


CVS commit by arwalker: 

When run from the command line, if curves are created one per plot, then label the plots P<n>-<y> where <n> is some integer (as before) and <y> is the name of the y-vector in some simple curve. All other cases remain as before.

CCMAIL: 94346-done at bugs.kde.org


  M +4 -4      main.cpp   1.103


--- kdeextragear-2/kst/kst/main.cpp  #1.102:1.103
@@ -555,4 +555,5 @@ int main(int argc, char *argv[]) {
       
                   if (in.sep_plots) {
+                    plot->setTagName(plot->tagName() + QString("-") + yvector->tagName());
                     i_plot++;
                     if (i_plot < in.n_plots) {
@@ -656,6 +657,5 @@ int main(int argc, char *argv[]) {
     
                 hs = new KstHistogram(KST::suggestHistogramName(yvector->field()),
-                    KstVectorPtr(yvector), min, max, N,
-                    KST_HS_NUMBER);
+                    KstVectorPtr(yvector), min, max, N, KST_HS_NUMBER);
                 KstVCurvePtr vc = new KstVCurve(KST::suggestCurveName(hs->tagName(), true),
                     hs->vX(), hs->vY(),
@@ -743,5 +743,5 @@ int main(int argc, char *argv[]) {
         kst->showQuickStartDialog();
       }
-      for (int i=0; i<strErrors.size(); i++) {
+      for (size_t i=0; i<strErrors.size(); i++) {
         KstDebug::self()->log(strErrors[i], KstDebug::Warning);
       }




More information about the Kst mailing list