Kaydet (Commit) 06345c78 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS mav32 (1.200.4); FILE MERGED

2008/04/18 15:11:34 mav 1.200.4.1: #i88424# fix the locking check on saving
üst dbd5e800
......@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docfile.cxx,v $
* $Revision: 1.201 $
* $Revision: 1.202 $
*
* This file is part of OpenOffice.org.
*
......@@ -993,9 +993,9 @@ sal_Bool SfxMedium::LockOrigFileOnDemand( sal_Bool bLoading )
SFX_ITEMSET_ARG( GetItemSet(), pReadOnlyItem, SfxBoolItem, SID_DOC_READONLY, sal_False);
// no locking is necessary if the document is explicitly opened as copy
// no locking is necessary on loading if the document is explicitly opened as copy
SFX_ITEMSET_ARG( GetItemSet(), pTemplateItem, SfxBoolItem, SID_TEMPLATE, sal_False);
bResult = ( pTemplateItem && pTemplateItem->GetValue() );
bResult = ( bLoading && pTemplateItem && pTemplateItem->GetValue() );
try
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment