]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix deprecating warning introduced in r72446.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:37:06 +0000 (13:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Sep 2012 13:37:06 +0000 (13:37 +0000)
Use wxVScrolledWindow::ScrollToRow() instead of the old and ambiguous
ScrollToLine() which is only preserved for compatibility reasons.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextstyles.cpp

index 328c84e727e31763f4ef40a06fd90cf0ae9d5cb8..9e0a84a177ea121a9230fe6f3929744538f72a70 100644 (file)
@@ -709,7 +709,7 @@ int wxRichTextStyleListBox::SetStyleSelection(const wxString& name)
     {
         SetSelection(i);
         if (!IsVisible(i))
-            ScrollToLine(i);
+            ScrollToRow(i);
     }
     return i;
 }