Ensure the selected style is visible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -706,7 +706,11 @@ int wxRichTextStyleListBox::SetStyleSelection(const wxString& name)
|
||||
{
|
||||
int i = GetIndexForStyle(name);
|
||||
if (i > -1)
|
||||
{
|
||||
SetSelection(i);
|
||||
if (!IsVisible(i))
|
||||
ScrollToLine(i);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user