don't try to resize if there is no image
svn path=/trunk/KDE/kdelibs/; revision=1184930
This commit is contained in:
parent
65acd2bfda
commit
2f468e0167
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user