[Libreoffice-commits] core.git: sw/source
navin patidar
patidar at kacst.edu.sa
Tue Apr 2 04:35:28 PDT 2013
sw/source/ui/shells/textsh1.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit bb920862c02047471f0ac5e78358e8d8fd9b93e7
Author: navin patidar <patidar at kacst.edu.sa>
Date: Mon Apr 1 10:06:12 2013 +0300
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 at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 01cb635..395c7d8 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;
More information about the Libreoffice-commits
mailing list