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

List:       kde-commits
Subject:    koffice/libs/kotext/styles
From:       Jos van den Oever <jos () vandenoever ! info>
Date:       2010-10-20 8:09:24
Message-ID: 20101020080924.7397FAC897 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1187696 by vandenoever:

move style:master-page-name and style:master-page-name

KOffice was writing style:master-page-name and style:master-page-name attributes as \
part of style:paragraph-properties instead of styles:style. This is fixed now.

 M  +2 -2      KoParagraphStyle.cpp  


--- trunk/koffice/libs/kotext/styles/KoParagraphStyle.cpp #1187695:1187696
@@ -1561,9 +1561,9 @@
         } else if (key == KoParagraphStyle::TabStopDistance) {
             style.addPropertyPt("style:tab-stop-distance", tabStopDistance(), \
KoGenStyle::ParagraphType);  } else if (key == KoParagraphStyle::MasterPageName) {
-            style.addProperty("style:master-page-name", masterPageName());
+            style.addAttribute("style:master-page-name", masterPageName());
         } else if (key == KoParagraphStyle::DefaultOutlineLevel) {
-            style.addProperty("style:default-outline-level", defaultOutlineLevel());
+            style.addAttribute("style:default-outline-level", \
defaultOutlineLevel());  }
     }
     if (!writtenLineSpacing && normalLineHeight)


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

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