summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-05-28 10:56:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-28 17:05:29 +0200
commitb9139c1a41acca28e48efdbc664d384734f81ce9 (patch)
tree605c876290831e7e96adb863b60bb6e17c8180ba
parentf1f2e2823749452d8e7f23891876e5cc10000553 (diff)
ScNumberFormatControl uses an SfxUInt16Item
...not an SfxInt16Item. Probably a typo introduced when adding the class with bf3f3a6bfb08c2d1a2c95f1c1cf62117e0002235 "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: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sc/source/ui/sidebar/NumberFormatControl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/sidebar/NumberFormatControl.cxx b/sc/source/ui/sidebar/NumberFormatControl.cxx
index ef951c4eab75..9e05fcc5a545 100644
--- a/sc/source/ui/sidebar/NumberFormatControl.cxx
+++ b/sc/source/ui/sidebar/NumberFormatControl.cxx
@@ -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;