summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-23 11:20:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-23 11:20:44 +0100
commited57f47cdf1cb815df898c6ae63aa6db6d992fd3 (patch)
tree114bba19cdb2855f8a90b332b044bff3814ffed1
parentfbc44fe63b47c1e2df9b4d7e1602f3358087fd62 (diff)
Resolves: tdf#113355 need to explicitly call initial TwoFigureHdl
Change-Id: Ia328f9adf95eef6711d286c9bde5b9a6edbd9978
-rw-r--r--cui/source/options/optgdlg.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index fb2ea14f4a16..e34c7e7a35c6 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -383,7 +383,10 @@ void OfaMiscTabPage::Reset( const SfxItemSet* rSet )
const SfxPoolItem* pItem = nullptr;
if ( SfxItemState::SET == rSet->GetItemState( SID_ATTR_YEAR2000, false, &pItem ) )
+ {
m_pYearValueField->SetValue( static_cast<const SfxUInt16Item*>(pItem)->GetValue() );
+ TwoFigureHdl(*m_pYearValueField);
+ }
else
m_pYearFrame->Enable(false);