diff options
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 0ceb4de7b766..0647d54c8d1e 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1553,7 +1553,8 @@ ScChart2DataProvider::createDataSource( //reorder labeled sequences according to aSequenceMapping ::std::vector< uno::Reference< chart2::data::XLabeledDataSequence > > aSeqVector; - for (auto const & aSeq : aSeqs) + aSeqVector.reserve(aSeqs.size()); + for (auto const& aSeq : aSeqs) { aSeqVector.push_back(aSeq); } |