don't try to resize if there is no image

svn path=/trunk/KDE/kdelibs/; revision=1184930
This commit is contained in:
Marco Martin 2010-10-11 21:08:38 +00:00
parent 65acd2bfda
commit 2f468e0167

View File

@ -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;