diff options
Diffstat (limited to 'cui/source/tabpages/tpcolor.cxx')
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index c85a80ed2c08..00d1a7b35248 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -653,7 +653,11 @@ void SvxColorTabPage::Reset( const SfxItemSet* rSet ) aPreviousColor = aColorItem.GetColorValue(); aNewColor = aColorItem.GetColorValue(); m_pLbColor->SelectEntry(aNewColor); - m_pValSetColorList->SelectItem( m_pLbColor->GetSelectEntryPos() + 1 ); + auto pos = m_pLbColor->GetSelectEntryPos(); + if (pos != LISTBOX_ENTRY_NOTFOUND) + { + m_pValSetColorList->SelectItem( pos + 1 ); + } } // set color model |