[Kst] branches/work/kst/portto4/kst/src/libkstapp
Peter Kümmel
syntheticpp at gmx.net
Sat Mar 19 12:48:54 CET 2011
SVN commit 1225289 by kuemmel:
only show first 40 plots
M +11 -1 commandlineparser.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/commandlineparser.cpp #1225288:1225289
@@ -10,12 +10,15 @@
* *
***************************************************************************/
+#include "config.h"
+
#include "commandlineparser.h"
#include "datasource.h"
#include "objectstore.h"
#include "colorsequence.h"
+#ifdef KST_HAVE_SVN_REVISION_H
#include "svnrevision.h"
-#include "config.h"
+#endif
#include <iostream>
#include <QCoreApplication>
@@ -605,14 +608,21 @@
curves = autoCurves(ds);
}
if (!curves.isEmpty()) {
+ int count = 0;
foreach(const ObjectPtr& ptr, curves) {
+ if (kst_cast<Curve>(ptr)) {
addCurve(kst_cast<Curve>(ptr));
+ count++;
}
+ if (count >= 40) {
+ break;
}
}
}
}
}
+ }
+ }
// set defaults to match what has been set.
_dialogDefaults->setValue("print/landscape", _landscape);
More information about the Kst
mailing list