diff options
Diffstat (limited to 'chart2/source/controller/dialogs/tp_Scale.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/tp_Scale.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx index 5206848b4df7..ece435b7d433 100644 --- a/chart2/source/controller/dialogs/tp_Scale.cxx +++ b/chart2/source/controller/dialogs/tp_Scale.cxx @@ -157,12 +157,11 @@ void ScaleTabPage::dispose() SfxTabPage::dispose(); } -IMPL_STATIC_LINK( - ScaleTabPage, FmtFieldModifiedHdl, FormattedField*, pFmtFied ) +IMPL_STATIC_LINK_TYPED( + ScaleTabPage, FmtFieldModifiedHdl, Edit&, rEdit, void ) { - if( pFmtFied ) - pFmtFied->SetDefaultValue( pFmtFied->GetValue() ); - return 0; + FormattedField& rFmtField = static_cast<FormattedField&>(rEdit); + rFmtField.SetDefaultValue( rFmtField.GetValue() ); } void ScaleTabPage::StateChanged( StateChangedType nType ) |