diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-07-07 02:43:32 +0530 |
---|---|---|
committer | Rishabh Kumar <kris.kr296@yahoo.in> | 2016-07-06 22:01:26 +0000 |
commit | c56974019c6f73f72bedeb84715d966009c8724e (patch) | |
tree | 2bbf96ba4e22b5461a871b76f93f1b3c9f64e8e7 /cui/source/tabpages/tphatch.cxx | |
parent | 880e013d7c9a4457de4fe6c7038a25f1b5a03c4c (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Rishabh Kumar <kris.kr296@yahoo.in>
Diffstat (limited to 'cui/source/tabpages/tphatch.cxx')
-rw-r--r-- | cui/source/tabpages/tphatch.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |