diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-03 21:02:05 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-12-03 21:06:51 +0100 |
commit | 2b9ba386d897e1ee53589b5a4a22918f6b5fd5e7 (patch) | |
tree | 7e371221305358ebe31bcdc00bbc81f4c82d604b | |
parent | 6e27a552b257c042ef1a6a0ec097636362d1760d (diff) |
workaround strange crash in dynamically created ref edit fields
Change-Id: I8fc509e2e7f6e52209d49d7c866744dd2d3ba000
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index f648beaf9cba..fe2d0e3c583b 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -162,8 +162,8 @@ void FillStyleListBox( ScDocument* pDoc, ListBox& rLbStyle ) ScConditionFrmtEntry::ScConditionFrmtEntry( Window* pParent, ScDocument* pDoc, const ScAddress& rPos, const ScCondFormatEntry* pFormatEntry ): ScCondFrmtEntry( pParent, pDoc, rPos ), maLbCondType( this, ScResId( LB_CELLIS_TYPE ) ), - maEdVal1( this, static_cast<ScAnyRefDlg*>(pParent->GetParent()), ScResId( ED_VAL1 ) ), - maEdVal2( this, static_cast<ScAnyRefDlg*>(pParent->GetParent()), ScResId( ED_VAL2 ) ), + maEdVal1( this, NULL, ScResId( ED_VAL1 ) ), + maEdVal2( this, NULL, ScResId( ED_VAL2 ) ), maFtStyle( this, ScResId( FT_STYLE ) ), maLbStyle( this, ScResId( LB_STYLE ) ), maWdPreview( this, ScResId( WD_PREVIEW ) ) |