From: Vadim Zeitlin Date: Wed, 23 Mar 2005 00:17:49 +0000 (+0000) Subject: clear m_aTypes array in Clear() as well (patch 1165866) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8397cab4dafee82a887785a80ab8f588a68d9f27 clear m_aTypes array in Clear() as well (patch 1165866) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/textbuf.h b/include/wx/textbuf.h index 8da8b29454..f6ca9dcfb9 100644 --- a/include/wx/textbuf.h +++ b/include/wx/textbuf.h @@ -157,7 +157,7 @@ public: } // remove all lines - void Clear() { m_aLines.clear(); m_nCurLine = 0; } + void Clear() { m_aLines.clear(); m_aTypes.clear(); m_nCurLine = 0; } // change the buffer (default argument means "don't change type") // possibly in another format