summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavin patidar <patidar@kacst.edu.sa>2013-04-01 10:06:12 +0300
committerBosdonnat Cedric <cedric.bosdonnat@free.fr>2013-04-02 11:35:08 +0000
commitbb920862c02047471f0ac5e78358e8d8fd9b93e7 (patch)
tree1d29c44a13ad00c3c5c3dca3e8a4d943a58b28a5
parent3064d2214e16b2221e6297bc6c68d684aece96b6 (diff)
fix fdo#40496: don't reset RES_PARATR_ADJUST & RES_FRAMEDIR attributes.
Change-Id: I69298632d56decbce3eb7058b982d845cb3e7240 Reviewed-on: https://gerrit.libreoffice.org/3146 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
-rw-r--r--sw/source/ui/shells/textsh1.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 01cb63599e6a..395c7d8b89cb 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -499,7 +499,9 @@ void SwTextShell::Execute(SfxRequest &rReq)
aAttribs.insert( aAttribs.end(), nE++ );
pUShorts += 2;
}
-
+ // we don't want to change writing direction and text alignment.
+ aAttribs.erase( RES_FRAMEDIR );
+ aAttribs.erase( RES_PARATR_ADJUST );
rWrtSh.ResetAttr( aAttribs );
rReq.Done();
break;