summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objstor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r--sfx2/source/doc/objstor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index b17b67a851a4..28cda91b6bd7 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2603,7 +2603,8 @@ bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs )
}
// copy version list from "old" medium to target medium, so it can be used on saving
- pMediumTmp->TransferVersionList_Impl( *pRetrMedium );
+ if (pImpl->bPreserveVersions)
+ pMediumTmp->TransferVersionList_Impl( *pRetrMedium );
// an interaction handler here can acquire only in case of GUI Saving
// and should be removed after the saving is done