From 4e0c6a0ac78d3c68922e032eec7f9c05cc39023a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 8 Mar 2013 09:23:53 +0000 Subject: Resolves: fdo#58630 crash with refEdit button in SfxTabDialog Change-Id: I11d6a0f1d4852aab1fe08671fd9c2a0dac0825a7 --- formula/inc/formula/funcutl.hxx | 2 ++ formula/source/ui/dlg/funcutl.cxx | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'formula') diff --git a/formula/inc/formula/funcutl.hxx b/formula/inc/formula/funcutl.hxx index 1dc10e88c062..b9e326786915 100644 --- a/formula/inc/formula/funcutl.hxx +++ b/formula/inc/formula/funcutl.hxx @@ -63,6 +63,8 @@ public: void SetRefDialog( IControlReferenceHandler* pDlg ); inline IControlReferenceHandler* GetRefDialog() { return pAnyRefDlg; } + Window* GetLabelWidgetForShrinkMode() { return m_pLabelWidget; } + void SetLabelWidgetForShrinkMode(Window *pLabel) { m_pLabelWidget = pLabel; } }; diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 4b047d31185c..64830d5d73e9 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -849,7 +849,8 @@ void EditBox::UpdateOldSel() RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResId& rResId ) : Edit( _pParent, rResId ), - pAnyRefDlg( pParent ) + pAnyRefDlg( pParent ), + m_pLabelWidget(NULL) { aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) ); aTimer.SetTimeout( SC_ENABLE_TIME ); @@ -857,7 +858,8 @@ RefEdit::RefEdit( Window* _pParent,IControlReferenceHandler* pParent, const ResI RefEdit::RefEdit( Window* _pParent, WinBits nStyle ) : Edit( _pParent, nStyle ), - pAnyRefDlg( NULL ) + pAnyRefDlg( NULL ), + m_pLabelWidget(NULL) { aTimer.SetTimeoutHdl( LINK( this, RefEdit, UpdateHdl ) ); aTimer.SetTimeout( SC_ENABLE_TIME ); -- cgit