summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-12 09:34:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-18 11:34:08 +0000
commit50c2d561981d99abad9978811655365ff9884c87 (patch)
tree9c04116347f8265eb1abd464b44cc80d1cdaf723 /sfx2
parent7dbc2a28ef699768c0634fac768523080a888350 (diff)
fix a crash found in passing
save a spreadsheet with an embedded formula in it to xlsx and alt tab away before the save has completed Change-Id: I9df996d4cb459a2aa688d06a7d53465518bebf5c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index ce293f4d0b19..57946d0231a5 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -723,7 +723,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
const SfxBoolItem* saveTo = rReq.GetArg<SfxBoolItem>(SID_SAVETO);
if (saveTo == nullptr || !saveTo->GetValue())
{
- GetFrame()->RemoveInfoBar("readonly");
+ SfxViewFrame *pFrame = GetFrame();
+ if (pFrame)
+ pFrame->RemoveInfoBar("readonly");
SetReadOnlyUI(false);
}
}