Kaydet (Commit) b9139c1a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

ScNumberFormatControl uses an SfxUInt16Item

...not an SfxInt16Item.  Probably a typo introduced when adding the class with
bf3f3a6b "notebookbar: working number format
listbox".  (Found with -fsanitize=vptr when switching Calc to "View - User
Interface - Tabbed Compact".)

Change-Id: I6142b20750872037767e1857edeae83b1b2fa849
Reviewed-on: https://gerrit.libreoffice.org/73089
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst f1f2e282
......@@ -55,7 +55,7 @@ void ScNumberFormatControl::StateChanged(sal_uInt16, SfxItemState eState,
{
case SfxItemState::DEFAULT:
{
const SfxInt16Item* pItem = static_cast<const SfxInt16Item*>(pState);
const SfxUInt16Item* pItem = static_cast<const SfxUInt16Item*>(pState);
sal_uInt16 nVal = pItem->GetValue();
pComboBox->SelectEntryPos(nVal);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment