Kaydet (Commit) 3809655e authored tarafından Thorsten Behrens's avatar Thorsten Behrens

sc: don't crash on loading comments

Seems filters call ShowNote before a view is set or something.
Fixup for 25555c50.

Change-Id: I9a69bf28b17cb16df7f1b1d06d9d3168da4a34b5
Reviewed-on: https://gerrit.libreoffice.org/46000Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst d38674f3
...@@ -1216,7 +1216,8 @@ bool ScDocFunc::ShowNote( const ScAddress& rPos, bool bShow ) ...@@ -1216,7 +1216,8 @@ bool ScDocFunc::ShowNote( const ScAddress& rPos, bool bShow )
ScTabView::OnLOKNoteStateChanged(pNote); ScTabView::OnLOKNoteStateChanged(pNote);
ScDocShell::GetViewData()->GetScDrawView()->SyncForGrid(pNote->GetCaption()); if (ScDocShell::GetViewData())
ScDocShell::GetViewData()->GetScDrawView()->SyncForGrid(pNote->GetCaption());
rDocShell.SetDocumentModified(); rDocShell.SetDocumentModified();
return true; return true;
......
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