]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/textctrl.cpp
removed assert which could be provoked by correct code
[wxWidgets.git] / src / mac / textctrl.cpp
index ddd40ad9d5acc9c2b41bedad9a826186c1a7ed7f..69da2912c7daa85033ac7e96be0cfb1952891271 100644 (file)
@@ -624,10 +624,10 @@ wxString wxTextCtrl::GetLineText(long lineNo) const
                
                for (int j = i; j < actualsize; j++)
                {
-                   tmp += wxBuffer[j];
-                   
                    if (wxBuffer[j] == '\r')
                        return tmp;
+                       
+                   tmp += wxBuffer[j];
                }
                
                return tmp;