From c56974019c6f73f72bedeb84715d966009c8724e Mon Sep 17 00:00:00 2001 From: Rishabh Kumar Date: Thu, 7 Jul 2016 02:43:32 +0530 Subject: Reload the preset list after deletion ValueSet assign Ids to entries when the list is loaded. Ids are not changed after deleting entries. Change-Id: Ia4442992561bf2cd82ff325abef8e34715851e1d Reviewed-on: https://gerrit.libreoffice.org/26986 Tested-by: Jenkins Reviewed-by: Rishabh Kumar --- cui/source/tabpages/tphatch.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cui/source/tabpages/tphatch.cxx') diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx index b806722cd1f3..2c733ad5b6cf 100644 --- a/cui/source/tabpages/tphatch.cxx +++ b/cui/source/tabpages/tphatch.cxx @@ -595,7 +595,8 @@ IMPL_LINK_NOARG_TYPED(SvxHatchTabPage, ClickDeleteHdl_Impl, SvxPresetListBox*, v if( aQueryBox->Execute() == RET_YES ) { m_pHatchingList->Remove( nPos - 1 ); - m_pHatchLB->RemoveItem( nPos ); + m_pHatchLB->Clear(); + m_pHatchLB->FillPresetListBox( *m_pHatchingList ); m_pHatchLB->SelectItem( 1 ); m_pCtlPreview->Invalidate(); -- cgit