summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/textcharacterproperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/textcharacterproperties.cxx')
-rw-r--r--oox/source/drawingml/textcharacterproperties.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/oox/source/drawingml/textcharacterproperties.cxx b/oox/source/drawingml/textcharacterproperties.cxx
index 552dcf933e81..6a0f37532d8b 100644
--- a/oox/source/drawingml/textcharacterproperties.cxx
+++ b/oox/source/drawingml/textcharacterproperties.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/awt/FontWeight.hpp>
+#include <comphelper/sequence.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <editeng/escapementitem.hxx>
#include <oox/helper/helper.hxx>
@@ -166,16 +167,7 @@ static void pushToGrabBag( PropertySet& rPropSet, const std::vector<PropertyValu
Any aAnyGrabBag = rPropSet.getAnyProperty(PROP_CharInteropGrabBag);
aAnyGrabBag >>= aGrabBag;
- sal_Int32 nLength = aGrabBag.getLength();
- aGrabBag.realloc(nLength + aVectorOfProperyValues.size());
-
- for (size_t i = 0; i < aVectorOfProperyValues.size(); i++)
- {
- PropertyValue aPropertyValue = aVectorOfProperyValues[i];
- aGrabBag[nLength + i] = aPropertyValue;
- }
-
- rPropSet.setAnyProperty(PROP_CharInteropGrabBag, makeAny(aGrabBag));
+ rPropSet.setAnyProperty(PROP_CharInteropGrabBag, makeAny(comphelper::concatSequences(aGrabBag, aVectorOfProperyValues)));
}
void TextCharacterProperties::pushToPropSet( PropertySet& rPropSet, const XmlFilterBase& rFilter ) const