From 2cd3295e693c90edf97b9a0c83896e1179072d89 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 4 Nov 2009 00:12:59 +0000 Subject: [PATCH] d->prefix is always guaranteed to be in d->frames svn path=/trunk/KDE/kdelibs/; revision=1044540 --- framesvg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framesvg.cpp b/framesvg.cpp index a79dcdce8..56262f8bd 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -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; }