summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pngwrite.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/pngwrite.cxx')
-rw-r--r--vcl/source/gdi/pngwrite.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index c3f07eb06538..ccc4b50d71e7 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -656,7 +656,7 @@ void PNGWriterImpl::ImplClearFirstScanline()
void PNGWriterImpl::ImplOpenChunk (sal_uLong nChunkType)
{
- maChunkSeq.resize(maChunkSeq.size() + 1);
+ maChunkSeq.emplace_back();
maChunkSeq.back().nType = nChunkType;
}