From 8397cab4dafee82a887785a80ab8f588a68d9f27 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Mar 2005 00:17:49 +0000 Subject: [PATCH] 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 --- include/wx/textbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2