[Kst] [Bug 135440] Crash when a plugin is missing
George Staikos
staikos at kde.org
Wed Oct 11 23:59:52 CEST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=135440
staikos kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From staikos kde org 2006-10-11 23:59 -------
SVN commit 594648 by staikos:
don't crash on loading invalid plugins
BUG: 135440
M +6 -2 kstplugin.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/kstplugin.cpp #594647:594648
@ -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