diff --git a/framesvg.cpp b/framesvg.cpp index 284f65263..9c0bf9ce4 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -194,7 +194,7 @@ void FrameSvg::resizeFrame(const QSizeF &size) } d->updateSizes(); - d->frames[d->prefix]->frameSize = size; + d->frames[d->prefix]->frameSize = size.toSize(); } QSizeF FrameSvg::frameSize() const @@ -565,7 +565,7 @@ void FrameSvgPrivate::generateBackground(FrameData *frame) pos = overlayPos; //Stretched or Tiled? } else if (q->hasElement(prefix+"hint-overlay-stretch") || q->hasElement(prefix+"hint-overlay-tile")) { - overlaySize = frame->frameSize.toSize(); + overlaySize = frame->frameSize; } QString id = QString::fromLatin1("overlay_%7_%6_%5_%4_%3_%2_%1_"). diff --git a/private/framesvg_p.h b/private/framesvg_p.h index 0fe361636..f81f6bebc 100644 --- a/private/framesvg_p.h +++ b/private/framesvg_p.h @@ -47,7 +47,7 @@ public: FrameSvg::EnabledBorders enabledBorders; QPixmap cachedBackground; QRegion cachedMask; - QSizeF frameSize; + QSize frameSize; //measures int topHeight;