diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlcomposer.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp index 2f0a5ee..c081764 100644 --- a/src/xmlcomposer.cpp +++ b/src/xmlcomposer.cpp @@ -382,18 +382,21 @@ void XmlComposer::BaseAnalyser::applyParaFormatting(RtfFormatting* format, else el.removeAttribute(kElStyle); - switch(format->paraAlign()) + if(DO_EXTRAS()) { - case RtfFormatting::CENTER: - el.setAttribute(kAtAlign, kValCenter); - break; - case RtfFormatting::RIGHT: - el.setAttribute(kAtAlign, kValRight); - break; - case RtfFormatting::JUSTIFY: - el.setAttribute(kAtAlign, kValJustify); - break; - }; + switch(format->paraAlign()) + { + case RtfFormatting::CENTER: + el.setAttribute(kAtAlign, kValCenter); + break; + case RtfFormatting::RIGHT: + el.setAttribute(kAtAlign, kValRight); + break; + case RtfFormatting::JUSTIFY: + el.setAttribute(kAtAlign, kValJustify); + break; + }; + } // These fix elements are later picked up in XmlFixups::fixBlocks el.setAttribute(kAtFix, fix); |