[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
v3.5.13-sru
samelian 14 years ago
parent b22a396306
commit a3db8bd529

@ -542,6 +542,8 @@ KSVGIconEngine::~KSVGIconEngine()
bool KSVGIconEngine::load(int width, int height, const TQString &path) bool KSVGIconEngine::load(int width, int height, const TQString &path)
{ {
if(path.isNull()) return false;
TQDomDocument svgDocument("svg"); TQDomDocument svgDocument("svg");
TQFile file(path); TQFile file(path);

Loading…
Cancel
Save