]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize m_nCurLine in wxTextBuffer ctor (part of patch 1908134)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Mar 2008 02:38:43 +0000 (02:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Mar 2008 02:38:43 +0000 (02:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/textbuf.h

index fae3b1209520107e4a1448117d05e0a0b0f56e0d..a5d39703ca185561568ae4d2b172c93c6c7a20ad 100644 (file)
@@ -172,7 +172,7 @@ protected:
     // -----
 
     // default ctor, use Open(string)
     // -----
 
     // default ctor, use Open(string)
-    wxTextBuffer() { m_isOpened = false; }
+    wxTextBuffer() { m_nCurLine = 0; m_isOpened = false; }
 
     // ctor from filename
     wxTextBuffer(const wxString& strBufferName);
 
     // ctor from filename
     wxTextBuffer(const wxString& strBufferName);