starmath/source/mathml/export.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5caa07ee4e77dfabb6fb48fd755ed2d18ddb2867 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Aug 31 11:27:07 2022 +0100 Commit: Eike Rathke <er...@redhat.com> CommitDate: Fri Sep 2 11:43:24 2022 +0200 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/+/138983 Tested-by: Jenkins Reviewed-by: Eike Rathke <er...@redhat.com> 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; }