summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRishabh <kris.kr296@gmail.com>2016-02-03 04:28:48 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-02-03 07:17:56 +0000
commit43799f9e21277e655c7ec940d266f775cada837a (patch)
tree366176de554171dec8490cf8ab32e83c4c9a00b6
parent4426c20cf308f3bf7a2d3b33f9996687113c22e3 (diff)
tdf#97407: Remove duplicate custom entry
Remove custom entry before updating the spacing listbox Change-Id: I9476e639f4d54e87a2c9049159e6abefb02a9b5e Reviewed-on: https://gerrit.libreoffice.org/21942 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sw/source/uibase/sidebar/WrapPropertyPanel.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx
index 8ee32d15feeb..41853261a272 100644
--- a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx
+++ b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx
@@ -214,7 +214,8 @@ void WrapPropertyPanel::UpdateSpacingLB()
}
}
- mpSpacingLB->InsertEntry(aCustomEntry);
+ if(mpSpacingLB->GetEntryPos(aCustomEntry) == LISTBOX_ENTRY_NOTFOUND)
+ mpSpacingLB->InsertEntry(aCustomEntry);
mpSpacingLB->SelectEntry(aCustomEntry);
}