[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sw/source

Rishabh kris.kr296 at gmail.com
Fri Feb 5 15:34:06 UTC 2016


 sw/source/uibase/sidebar/WrapPropertyPanel.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit dea370d7bb0ce4b8190dc98976b2691fce659952
Author: Rishabh <kris.kr296 at gmail.com>
Date:   Wed Feb 3 04:28:48 2016 +0530

    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 at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    (cherry picked from commit 43799f9e21277e655c7ec940d266f775cada837a)
    Reviewed-on: https://gerrit.libreoffice.org/22066
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx
index 8ee32d1..4185326 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);
 }
 


More information about the Libreoffice-commits mailing list