summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/PropertyMap.cxx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2019-01-08 18:37:21 +0300
committerJustin Luth <justin_luth@sil.org>2019-01-08 20:19:58 +0100
commit93d3ef817af1e07ff8b6ea2e6636358c1762a62a (patch)
treee788ecabd411fc2ce51137ead19a55ca0c018796 /writerfilter/source/dmapper/PropertyMap.cxx
parent13ed75dd3f84d38cce8f46792af560a5090ec180 (diff)
writerfilter: avoid exception - IsProtect not page style property.
Change-Id: I3e91bc82e5857116f5d94103a7c22ce333e4f89b Reviewed-on: https://gerrit.libreoffice.org/65976 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'writerfilter/source/dmapper/PropertyMap.cxx')
-rw-r--r--writerfilter/source/dmapper/PropertyMap.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx
index 9d236a7ce5c1..91716a64dbe4 100644
--- a/writerfilter/source/dmapper/PropertyMap.cxx
+++ b/writerfilter/source/dmapper/PropertyMap.cxx
@@ -1730,7 +1730,9 @@ void SectionPropertyMap::ApplyProperties_( const uno::Reference< beans::XPropert
for ( beans::PropertyValue* pIter = vPropVals.begin(); pIter != vPropVals.end(); ++pIter )
{
- if ( pIter != pCharGrabBag && pIter != pParaGrabBag )
+ if ( pIter != pCharGrabBag && pIter != pParaGrabBag
+ && pIter->Name != "IsProtected" //section-only property
+ )
{
vNames.push_back( pIter->Name );
vValues.push_back( pIter->Value );