diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 441641d1c65c..720e939e3885 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2741,13 +2741,7 @@ bool SfxObjectShell::ImportFrom(SfxMedium& rMedium, uno::Reference<beans::XPropertySetInfo> xPropertySetInfo = xPropertySet->getPropertySetInfo(); if (xPropertySetInfo.is() && xPropertySetInfo->hasPropertyByName("_MarkAsFinal")) { - Any anyMarkAsFinal = xPropertySet->getPropertyValue("_MarkAsFinal"); - const OUString strValueTypeName = anyMarkAsFinal.getValueTypeName(); - - if ( - ( (strValueTypeName == "boolean") && (anyMarkAsFinal.get<bool>()) ) || - ( (strValueTypeName == "string") && (anyMarkAsFinal.get<OUString>() == "true") ) - ) + if (xPropertySet->getPropertyValue("_MarkAsFinal").get<bool>()) { uno::Reference< lang::XMultiServiceFactory > xFactory(GetModel(), uno::UNO_QUERY); uno::Reference< beans::XPropertySet > xSettings(xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY); |