From 519fae2932fd293b6a3368749a87c3c34698a277 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 7 Jun 2005 23:52:42 +0000 Subject: Only do paragraph alignment in presentation mode. --- src/xmlcomposer.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src') 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); -- cgit v1.2.3