summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-31 11:27:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-31 20:53:26 +0200
commitead23d945fb7bc794996c82287282bc385296ada (patch)
treee2a8c683d1e325df37057b95ed244336a5f8dfdb /starmath
parent5a7522d378e080eae4f3558102f0642d6f5fab71 (diff)
cid#1509247 reserve here can't be right
the assumption is that m_aSvXMLElementExportList[m_nDepth] can be written to here, so it should at least be resize not reserve Change-Id: I2bb6074ca9dd2f71e17f5b9ec955e4d6d65edaa9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139098 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathml/export.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/mathml/export.cxx b/starmath/source/mathml/export.cxx
index 1c88d3f5664d..b55be509216b 100644
--- a/starmath/source/mathml/export.cxx
+++ b/starmath/source/mathml/export.cxx
@@ -1063,7 +1063,7 @@ public:
inline void setDepthData(SvXMLElementExport* aSvXMLElementExportList)
{
if (m_nDepth == m_aSvXMLElementExportList.size())
- m_aSvXMLElementExportList.reserve(m_aSvXMLElementExportList.size() + 1024);
+ m_aSvXMLElementExportList.resize(m_aSvXMLElementExportList.size() + 1024);
m_aSvXMLElementExportList[m_nDepth] = aSvXMLElementExportList;
}