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; }