diff options
Diffstat (limited to 'framework/source/accelerators')
-rw-r--r-- | framework/source/accelerators/presethandler.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx index e5cf10430f26..c30ca7882b24 100644 --- a/framework/source/accelerators/presethandler.cxx +++ b/framework/source/accelerators/presethandler.cxx @@ -4,9 +4,9 @@ * * $RCSfile: presethandler.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2005-09-09 01:05:03 $ + * last change: $Author: hr $ $Date: 2005-09-30 10:11:22 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -441,14 +441,18 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType case E_DOCUMENT : { + // A document does not have a share layer in real. + // It has one layer only, and this one should be opened READ_WRITE. + // So we open the user layer here only and set the share layer equals to it .-) + sRelPathBuf.append(sResource); - sRelPathShare = sRelPathBuf.makeStringAndClear(); - sRelPathUser = sRelPathShare; + sRelPathUser = sRelPathBuf.makeStringAndClear(); + sRelPathShare = sRelPathUser; try { - xUser = m_lDocumentStorages.openPath(sRelPathUser, eUserMode); - xShare = xUser; // !!! + xUser = m_lDocumentStorages.openPath(sRelPathUser , eUserMode ); + xShare = xUser; } catch(const css::uno::RuntimeException& exRun) { throw exRun; } |