Kaydet (Commit) 5448d8ed authored tarafından Caolán McNamara's avatar Caolán McNamara

surely this check should preceed deref of pActiveViewSh

Change-Id: Iaed1dafbae75fa61b15349aedda50a7b2d895719
üst 252a73ff
...@@ -197,13 +197,12 @@ void removeChars(OUString& rStr, sal_Unicode c) ...@@ -197,13 +197,12 @@ void removeChars(OUString& rStr, sal_Unicode c)
void ScInputHandler::InitRangeFinder( const OUString& rFormula ) void ScInputHandler::InitRangeFinder( const OUString& rFormula )
{ {
DeleteRangeFinder(); DeleteRangeFinder();
if ( !pActiveViewSh || !SC_MOD()->GetInputOptions().GetRangeFinder() )
return;
ScDocShell* pDocSh = pActiveViewSh->GetViewData().GetDocShell(); ScDocShell* pDocSh = pActiveViewSh->GetViewData().GetDocShell();
ScDocument& rDoc = pDocSh->GetDocument(); ScDocument& rDoc = pDocSh->GetDocument();
const sal_Unicode cSheetSep = lcl_getSheetSeparator(&rDoc); const sal_Unicode cSheetSep = lcl_getSheetSeparator(&rDoc);
if ( !pActiveViewSh || !SC_MOD()->GetInputOptions().GetRangeFinder() )
return;
OUString aDelimiters = ScEditUtil::ModifyDelimiters(" !\""); OUString aDelimiters = ScEditUtil::ModifyDelimiters(" !\"");
// delimiters (in addition to ScEditUtil): only characters that are // delimiters (in addition to ScEditUtil): only characters that are
// allowed in formulas next to references and the quotation mark (so // allowed in formulas next to references and the quotation mark (so
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment