diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index f0e7550c4c..4f2c65b97c 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -408,6 +408,7 @@ wxSVGBitmapEmbedHandler::ProcessBitmap(const wxBitmap& bmp, // write image meta information wxString s; + s.reserve(data.size()); s += wxString::Format(" \n"; // last line + s += data.substr(i) + "\"\n />\n"; // last line } // write to the SVG file