take the right sizes of the margin hints

svn path=/trunk/KDE/kdelibs/; revision=931029
This commit is contained in:
Marco Martin 2009-02-24 16:47:51 +00:00
parent 13e9b7c2c4
commit a82716d835

View File

@ -657,7 +657,7 @@ void FrameSvgPrivate::updateSizes()
frame->leftWidth = q->elementSize(prefix + "left").width();
if (q->hasElement(prefix + "hint-left-margin")) {
frame->leftMargin = q->elementSize(prefix + "hint-left-margin").height();
frame->leftMargin = q->elementSize(prefix + "hint-left-margin").width();
} else {
frame->leftMargin = frame->leftWidth;
}
@ -669,7 +669,7 @@ void FrameSvgPrivate::updateSizes()
frame->rightWidth = q->elementSize(prefix + "right").width();
if (q->hasElement(prefix + "hint-right-margin")) {
frame->rightMargin = q->elementSize(prefix + "hint-right-margin").height();
frame->rightMargin = q->elementSize(prefix + "hint-right-margin").width();
} else {
frame->rightMargin = frame->rightWidth;
}