writerfilter/source/dmapper/PropertyMap.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 93d3ef817af1e07ff8b6ea2e6636358c1762a62a
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Tue Jan 8 18:37:21 2019 +0300
Commit:     Justin Luth <justin_l...@sil.org>
CommitDate: Tue Jan 8 20:19:58 2019 +0100

    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_l...@sil.org>

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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to