diff options
author | Daniel Rentz <dr@openoffice.org> | 2010-01-26 13:49:49 +0100 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2010-01-26 13:49:49 +0100 |
commit | 84e57ce731b48c69b8f826007d4fffd67972560f (patch) | |
tree | bb20efbc4838e9c250d97a9cf3169ccf3014a90a | |
parent | 60fdd54890f04949f1b82d4f7a4903e65f165a7c (diff) |
#i108547# allow modifications in readonly document when loading msooxml
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index b4b5f4721900..fa52bd5871e3 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -100,8 +100,9 @@ void ScDocShell::ErrorMessage( USHORT nGlobStrId ) BOOL ScDocShell::IsEditable() const { // import into read-only document is possible - must be extended if other filters use api + // #i108547# MSOOXML filter uses "IsChangeReadOnlyEnabled" property - return !IsReadOnly() || aDocument.IsImportingXML(); + return !IsReadOnly() || aDocument.IsImportingXML() || aDocument.IsChangeReadOnlyEnabled(); } void ScDocShell::DBAreaDeleted( SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW /* nY2 */ ) |