diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-12 09:34:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-18 11:34:08 +0000 |
commit | 50c2d561981d99abad9978811655365ff9884c87 (patch) | |
tree | 9c04116347f8265eb1abd464b44cc80d1cdaf723 /sfx2 | |
parent | 7dbc2a28ef699768c0634fac768523080a888350 (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.cxx | 4 |
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); } } |