summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index 21a13e22a224..97ec8ce35ca2 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -426,17 +426,17 @@ throw( SAXException, RuntimeException )
//fix for fdo#39370
/// check whether RTL interface or not
if(Application::GetSettings().GetLayoutRTL()){
- if (aCommandURL.compareTo(".uno:ParaLeftToRight") == 0)
+ if (aCommandURL == ".uno:ParaLeftToRight")
aCommandURL = ".uno:ParaRightToLeft";
- else if (aCommandURL.compareTo(".uno:ParaRightToLeft") == 0)
+ else if (aCommandURL == ".uno:ParaRightToLeft")
aCommandURL = ".uno:ParaLeftToRight";
- else if (aCommandURL.compareTo(".uno:LeftPara") == 0)
+ else if (aCommandURL == ".uno:LeftPara")
aCommandURL = ".uno:RightPara";
- else if (aCommandURL.compareTo(".uno:RightPara") == 0)
+ else if (aCommandURL == ".uno:RightPara")
aCommandURL = ".uno:LeftPara";
- else if (aCommandURL.compareTo(".uno:AlignLeft") == 0)
+ else if (aCommandURL == ".uno:AlignLeft")
aCommandURL = ".uno:AlignRight";
- else if (aCommandURL.compareTo(".uno:AlignRight") == 0)
+ else if (aCommandURL == ".uno:AlignRight")
aCommandURL = ".uno:AlignLeft";
}