ensure that size() always return the real size

svn path=/trunk/KDE/kdelibs/; revision=912123
This commit is contained in:
Marco Martin 2009-01-16 18:43:26 +00:00
parent ab3501872d
commit 8a0159e10e

View File

@ -454,6 +454,11 @@ void Svg::paint(QPainter *painter, int x, int y, int width, int height, const QS
QSize Svg::size() const
{
if (d->size.isEmpty()) {
d->createRenderer();
d->size = d->renderer->defaultSize();
}
return d->size.toSize();
}