From 8337ae1e4071eef441b39bc91cdb2391225f30f9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 25 Mar 2011 16:42:02 +0000 Subject: [PATCH] Fix for image saving speedup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index ce0f18c004..c0c9e9345f 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -10422,7 +10422,7 @@ bool wxRichTextImageBlock::WriteHex(wxOutputStream& stream) int bufSize = 100000; if (int(m_dataSize+1) < bufSize) - bufSize = m_dataSize+1; + bufSize = m_dataSize; char* buf = new char[bufSize+1]; int left = m_dataSize; -- 2.45.2