[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.2/kdelibs/plasma
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-02-24 16:58:13
Message-ID: 1235494693.782995.29673.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 931032 by mart:

backport correct margin calculation


 M  +2 -2      framesvg.cpp  


--- branches/KDE/4.2/kdelibs/plasma/framesvg.cpp #931031:931032
@@ -681,7 +681,7 @@
         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;
         }
@@ -693,7 +693,7 @@
         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;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic