diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-20 15:38:17 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-20 15:38:17 +0000 |
commit | a3db8bd529c3d812485bdd2dfc4e9ba4e49da458 (patch) | |
tree | 08e21183bc227ad0a104cafc8eb227e5ff5b0420 /kdecore/svgicons/ksvgiconengine.cpp | |
parent | b22a3963063be5b52f3d79ff5a729e076226601f (diff) | |
download | tdelibs-a3db8bd529c3d812485bdd2dfc4e9ba4e49da458.tar.gz tdelibs-a3db8bd529c3d812485bdd2dfc4e9ba4e49da458.zip |
[kdelibs/svgicons] ksvgiconengine.cpp: extra check for NULL value
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1225394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/svgicons/ksvgiconengine.cpp')
-rw-r--r-- | kdecore/svgicons/ksvgiconengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kdecore/svgicons/ksvgiconengine.cpp b/kdecore/svgicons/ksvgiconengine.cpp index 2dcd1c226..53a212c37 100644 --- a/kdecore/svgicons/ksvgiconengine.cpp +++ b/kdecore/svgicons/ksvgiconengine.cpp @@ -542,6 +542,8 @@ KSVGIconEngine::~KSVGIconEngine() bool KSVGIconEngine::load(int width, int height, const TQString &path) { + if(path.isNull()) return false; + TQDomDocument svgDocument("svg"); TQFile file(path); |