summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-06-07 23:52:42 +0000
committerStef Walter <stef@memberwebs.com>2005-06-07 23:52:42 +0000
commit519fae2932fd293b6a3368749a87c3c34698a277 (patch)
treebbc5722f17f1e3813a6c42ce488987209fb0d63e
parent651b7adf13ebc575b4685254c675cc7d35b7fbed (diff)
Only do paragraph alignment in presentation mode.
-rw-r--r--src/xmlcomposer.cpp25
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);