]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextstyles.cpp
Select the entire spin control contents when changing its value.
[wxWidgets.git] / src / richtext / richtextstyles.cpp
index 60c975478ef3a261df5936b54d993d2839b7a2b6..9e0a84a177ea121a9230fe6f3929744538f72a70 100644 (file)
@@ -706,7 +706,11 @@ int wxRichTextStyleListBox::SetStyleSelection(const wxString& name)
 {
     int i = GetIndexForStyle(name);
     if (i > -1)
+    {
         SetSelection(i);
+        if (!IsVisible(i))
+            ScrollToRow(i);
+    }
     return i;
 }