[Kst] branches/kst/1.3/kst/src/libkstmath
George Staikos
staikos at kde.org
Thu Oct 12 05:03:55 CEST 2006
SVN commit 594712 by staikos:
backport fix for crash on invalid plugin in kstfile
M +6 -2 kstplugin.cpp
--- branches/kst/1.3/kst/src/libkstmath/kstplugin.cpp #594711:594712
@@ -426,9 +426,13 @@
QString KstPlugin::label(int precision) const {
QString label;
-
+
+ if (!plugin()) {
+ return label;
+ }
+
label = i18n("%1: %2").arg(plugin()->data()._readableName).arg(tagName());
- if ((outputVectors())["Parameters"]) {
+ if (outputVectors()["Parameters"]) {
QString strParamName;
QString strValue;
int length = (outputVectors())["Parameters"]->length();
More information about the Kst
mailing list