diff options
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/filtdlg.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx index 572e07e6b79d..ca0fdee39b6e 100644 --- a/sc/source/ui/dbgui/filtdlg.cxx +++ b/sc/source/ui/dbgui/filtdlg.cxx @@ -270,9 +270,12 @@ void ScFilterDlg::Init( const SfxItemSet& rArgSet ) pDoc->GetFormatTable()->GetInputLineString( rItem.mfVal, 0, aValStr); else if (rItem.meType == ScQueryEntry::ByDate) { - SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); - pFormatter->GetInputLineString( rItem.mfVal, - pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr); + if(pDoc) + { + SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); + pFormatter->GetInputLineString( rItem.mfVal, + pFormatter->GetStandardFormat( NUMBERFORMAT_DATE), aValStr); + } } else { |