summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-20 11:29:29 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-20 11:32:57 +0200
commitb95d203bc17c83ec0fe5139f519d53ed1d842d3a (patch)
tree71e9834149b782991a69580d4900a8dc771ac6a3 /writerfilter
parent4967a9d8f96987354b8b55d861e2e3f6fa93e7a4 (diff)
fdo#53175: Don't load the default values of the styles in writerfilter
...or we may have some additional properties set on some styles. Change-Id: I5a5d307931a2a6c1f25bd2da93381d8de65c2480
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/filter/ImportFilter.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerfilter/source/filter/ImportFilter.cxx b/writerfilter/source/filter/ImportFilter.cxx
index 4aa61ced696e..8952703e67f0 100644
--- a/writerfilter/source/filter/ImportFilter.cxx
+++ b/writerfilter/source/filter/ImportFilter.cxx
@@ -173,6 +173,9 @@ void WriterFilter::setTargetDocument( const uno::Reference< lang::XComponent >&
uno::Reference< beans::XPropertySet > xSettings( xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY );
xSettings->setPropertyValue( "UnbreakableNumberings", uno::makeAny( sal_True ) );
+
+ // Don't load the default style definitions to avoid weird mix
+ xSettings->setPropertyValue( "StylesNoDefault", uno::makeAny( sal_True ) );
}
void WriterFilter::setSourceDocument( const uno::Reference< lang::XComponent >& xDoc )