[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Mon Oct 23 10:21:15 UTC 2017


 cui/source/options/optgdlg.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ed57f47cdf1cb815df898c6ae63aa6db6d992fd3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 23 11:20:25 2017 +0100

    Resolves: tdf#113355 need to explicitly call initial TwoFigureHdl
    
    Change-Id: Ia328f9adf95eef6711d286c9bde5b9a6edbd9978

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);
 


More information about the Libreoffice-commits mailing list