summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx')
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index e78bf7f11e16..25ad6a570091 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -100,8 +100,8 @@ void NumberFormatPropertyPanel::Initialize()
mpEdDecimals->SetAccessibleName(OUString( "Decimal Places"));
mpEdLeadZeroes->SetAccessibleName(OUString( "Leading Zeroes"));
- mpBtnNegRed->SetClickHdl( aLink );
- mpBtnThousand->SetClickHdl( aLink );
+ mpBtnNegRed->SetClickHdl( LINK(this, NumberFormatPropertyPanel, NumFormatValueClickHdl) );
+ mpBtnThousand->SetClickHdl( LINK(this, NumberFormatPropertyPanel, NumFormatValueClickHdl) );
mpTBCategory->SetAccessibleRelationLabeledBy(mpTBCategory);
}
@@ -118,6 +118,10 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox )
return 0L;
}
+IMPL_LINK_NOARG_TYPED( NumberFormatPropertyPanel, NumFormatValueClickHdl, Button*, void )
+{
+ NumFormatValueHdl(nullptr);
+}
IMPL_LINK_NOARG( NumberFormatPropertyPanel, NumFormatValueHdl )
{
OUString aFormat;