summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/paragraph
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-16 16:15:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-16 20:26:41 +0100
commitc89cafb192a8406692bdd0a77634c064786e7ac0 (patch)
tree1411e12893043b762d3dfaa72e0dc81a4dd236c4 /svx/source/sidebar/paragraph
parent1d1fbbe81b4435765d3f69c6bcae2840dc629912 (diff)
cppcheck: duplicate branch
Change-Id: I1731b60036d94791a39290957d6c4d3b345c077f
Diffstat (limited to 'svx/source/sidebar/paragraph')
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.cxx25
1 files changed, 4 insertions, 21 deletions
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index be987fbd2d16..cb14227536c7 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -264,17 +264,8 @@ void ParaPropertyPanel::InitToolBoxIndent()
const sal_uInt16 nIdIncrement = mpTbxIndent_IncDec->GetItemId(UNO_INCREMENTINDENT);
const sal_uInt16 nIdDecrement = mpTbxIndent_IncDec->GetItemId(UNO_DECREMENTINDENT);
const sal_uInt16 nIdHanging = mpTbxIndent_IncDec->GetItemId(UNO_HANGINGINDENT);
-
- if( Application::GetSettings().GetLayoutRTL())
- {
- mpTbxIndent_IncDec->SetItemImage(nIdIncrement, maIncIndentControl.GetIcon());
- mpTbxIndent_IncDec->SetItemImage(nIdDecrement, maDecIndentControl.GetIcon());
- }
- else
- {
- mpTbxIndent_IncDec->SetItemImage(nIdIncrement, maIncIndentControl.GetIcon());
- mpTbxIndent_IncDec->SetItemImage(nIdDecrement, maDecIndentControl.GetIcon());
- }
+ mpTbxIndent_IncDec->SetItemImage(nIdIncrement, maIncIndentControl.GetIcon());
+ mpTbxIndent_IncDec->SetItemImage(nIdDecrement, maDecIndentControl.GetIcon());
mpTbxIndent_IncDec->SetItemImage(nIdHanging, maIndHang);
aLink = LINK( this, ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl );
@@ -284,16 +275,8 @@ void ParaPropertyPanel::InitToolBoxIndent()
const sal_uInt16 nIdPromote = mpTbxProDemote->GetItemId(UNO_PROMOTE);
const sal_uInt16 nIdDemote = mpTbxProDemote->GetItemId(UNO_DEMOTE);
const sal_uInt16 nIdHanging2 = mpTbxProDemote->GetItemId(UNO_HANGINGINDENT2);
- if( Application::GetSettings().GetLayoutRTL())
- {
- mpTbxProDemote->SetItemImage(nIdPromote, maOutLineLeftControl.GetIcon());
- mpTbxProDemote->SetItemImage(nIdDemote, maOutLineRightControl.GetIcon());
- }
- else
- {
- mpTbxProDemote->SetItemImage(nIdPromote, maOutLineLeftControl.GetIcon());
- mpTbxProDemote->SetItemImage(nIdDemote, maOutLineRightControl.GetIcon());
- }
+ mpTbxProDemote->SetItemImage(nIdPromote, maOutLineLeftControl.GetIcon());
+ mpTbxProDemote->SetItemImage(nIdDemote, maOutLineRightControl.GetIcon());
mpTbxProDemote->SetItemImage(nIdHanging2, maIndHang);
aLink = LINK( this, ParaPropertyPanel, ClickProDemote_Hdl_Impl );
mpTbxProDemote->SetSelectHdl(aLink);