check if d->frames is empty

BUG:235851

svn path=/trunk/KDE/kdelibs/; revision=1126216
This commit is contained in:
Marco Martin 2010-05-13 10:08:44 +00:00
parent cb6d3b581a
commit a918cc5af7

View File

@ -78,6 +78,10 @@ void FrameSvg::setEnabledBorders(const EnabledBorders borders)
FrameSvg::EnabledBorders FrameSvg::enabledBorders() const
{
if (d->frames.isEmpty()) {
return NoBorder;
}
QHash<QString, FrameData*>::const_iterator it = d->frames.constFind(d->prefix);
if (it != d->frames.constEnd()) {