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:36:55 +0000
commit12bc593da98be68961a9ea7d31619a7718fd1d4b (patch)
tree190b75857b69dbb53e938872bbd7156aa125bc06 /sfx2
parent6183ae17b58ba747b529ad8c1b70ae5fd6e27e5a (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 (cherry picked from commit 50c2d561981d99abad9978811655365ff9884c87)
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 d27db019168c..1d22bce65e31 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);
}
}