d->prefix is always guaranteed to be in d->frames

svn path=/trunk/KDE/kdelibs/; revision=1044540
This commit is contained in:
Aaron J. Seigo 2009-11-04 00:12:59 +00:00
parent 7751044026
commit 2cd3295e69

View File

@ -239,7 +239,7 @@ void FrameSvg::getMargins(qreal &left, qreal &top, qreal &right, qreal &bottom)
{
FrameData *frame = d->frames[d->prefix];
if (!frame || frame->noBorderPadding) {
if (frame->noBorderPadding) {
left = top = right = bottom = 0;
return;
}