]> git.saurik.com Git - wxWidgets.git/commitdiff
clear m_aTypes array in Clear() as well (patch 1165866)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Mar 2005 00:17:49 +0000 (00:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Mar 2005 00:17:49 +0000 (00:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/textbuf.h

index 8da8b294548f7f962d27bd1031a3ae6176ebbdd5..f6ca9dcfb9d32c7e48b276b5d343ce650c90a7ab 100644 (file)
@@ -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