From: Vadim Zeitlin Date: Sun, 9 Sep 2012 13:37:06 +0000 (+0000) Subject: Fix deprecating warning introduced in r72446. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/14722c43c30918cd8fbba956b50ac3426d2fe339 Fix deprecating warning introduced in r72446. 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 --- diff --git a/src/richtext/richtextstyles.cpp b/src/richtext/richtextstyles.cpp index 328c84e727..9e0a84a177 100644 --- a/src/richtext/richtextstyles.cpp +++ b/src/richtext/richtextstyles.cpp @@ -709,7 +709,7 @@ int wxRichTextStyleListBox::SetStyleSelection(const wxString& name) { SetSelection(i); if (!IsVisible(i)) - ScrollToLine(i); + ScrollToRow(i); } return i; }