]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
In virtual list mode, map first row to 1, not to 0 as this is reserved for an invalid...
[wxWidgets.git] / samples / scroll / scroll.cpp
index e30c5348d3e95d4482158eefe8a67c748e56907e..874783a1bbb4f179e4fbf1b5822686bcbe1703c8 100644 (file)
@@ -1240,7 +1240,7 @@ void MyAutoScrollingWindow::OnDraw(wxDC& dc)
     dc.SetPen(*wxTRANSPARENT_PEN);
     const wxString str = sm_testData;
     size_t strLength = str.length();
-    wxString::const_iterator str_i = std.begin();
+    wxString::const_iterator str_i = str.begin();
 
     // draw the characters
     // 1. for each update region