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

List:       kde-commits
Subject:    koffice/lib/kotext
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2006-01-30 18:35:50
Message-ID: 1138646150.796705.8320.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 503898 by zachmann:

o Fix loading of line-height % values


 M  +3 -1      KoParagLayout.cpp  


--- trunk/koffice/lib/kotext/KoParagLayout.cpp #503897:503898
@@ -486,9 +486,11 @@
                 layout.lineSpacingType = KoParagLayout::LS_DOUBLE;
             else if ( value.find('%') > -1 )
             {
+                value = value.remove( '%' );
                 double percent = value.toDouble();
                 layout.lineSpacingType = KoParagLayout::LS_MULTIPLE;
-                layout.lineSpacing = percent/100;
+                layout.lineSpacing = percent / 100.0;
+                kdDebug(33001) << "line-height =" << percent << ", " << \
layout.lineSpacing << ", " << percent/100 << endl;  }
             else // fixed value
             {


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

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