summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/objstor.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index f5b7f11915d4..8828551136ae 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -1078,9 +1078,10 @@ bool SfxObjectShell::DoSave()
}
if (bOk)
- Save();
+ bOk = Save();
- bOk = pMedium->Commit();
+ if (bOk)
+ bOk = pMedium->Commit();
}
return bOk;