[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Feb 2 08:04:28 UTC 2018


 writerfilter/source/dmapper/NumberingManager.cxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit a6f2199e9888cb75960f1d35034bd44fb45e5565
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Feb 1 16:26:09 2018 +0100

    DOCX import: don't try to set grab-gag props as UNO props
    
    This fixes loads of warnings like this one:
    
    warn:legacy.osl:22335:22335:writerfilter/source/dmapper/StyleSheetTable.cxx:1611: Exception in StyleSheetTable::getOrCreateCharStyle - Style::setPropertyValue
    
    during import. They are harmless as we catch the exception, but they are
    just noise. It seems the code that transforms grab-bag pseudo-props into
    real props was added in commit 4c3ba3a413be7339115ea5e6edc825a8434cd345
    (fdo#75757: Remove inheritance from std::map., 2014-07-26), which is
    supposed to be a pure refactoring, so just remove this problematic
    transformation.
    
    Change-Id: Ibf45bfedc661f9e065405c47623516c4026148a4
    Reviewed-on: https://gerrit.libreoffice.org/49105
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 72308e05c117..2e5794c31495 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -217,15 +217,6 @@ uno::Sequence< beans::PropertyValue > ListLevel::GetCharStyleProperties( )
     {
         if (IgnoreForCharStyle(aValIter->Name))
             continue;
-        else if(aValIter->Name=="CharInteropGrabBag" || aValIter->Name=="ParaInteropGrabBag") {
-            uno::Sequence<beans::PropertyValue> vGrabVals;
-            aValIter->Value >>= vGrabVals;
-            beans::PropertyValue* aGrabIter = vGrabVals.begin();
-            for(; aGrabIter!=vGrabVals.end(); ++aGrabIter) {
-                if(!IgnoreForCharStyle(aGrabIter->Name))
-                    rProperties.emplace_back(aGrabIter->Name, 0, aGrabIter->Value, beans::PropertyState_DIRECT_VALUE);
-            }
-        }
         else
             rProperties.emplace_back(aValIter->Name, 0, aValIter->Value, beans::PropertyState_DIRECT_VALUE);
     }


More information about the Libreoffice-commits mailing list