From 2f468e016704ed13b4d0fffddc7fe1482fa1f1e1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 11 Oct 2010 21:08:38 +0000 Subject: [PATCH] don't try to resize if there is no image svn path=/trunk/KDE/kdelibs/; revision=1184930 --- framesvg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framesvg.cpp b/framesvg.cpp index bdb304e67..cae19d103 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -271,6 +271,10 @@ QString FrameSvg::prefix() void FrameSvg::resizeFrame(const QSizeF &size) { + if (imagePath().isEmpty()) { + return; + } + if (size.isEmpty()) { kWarning() << "Invalid size" << size; return;