diff options
author | Stef Walter <stef@memberwebs.com> | 2005-06-07 23:52:42 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-06-07 23:52:42 +0000 |
commit | 519fae2932fd293b6a3368749a87c3c34698a277 (patch) | |
tree | bbc5722f17f1e3813a6c42ce488987209fb0d63e /src | |
parent | 651b7adf13ebc575b4685254c675cc7d35b7fbed (diff) |
Only do paragraph alignment in presentation mode.
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); |