Ensure that scrollbar GtkRange page increment is set to a positive value

It should not be less than the step increment, which is always one.
See #18688
This commit is contained in:
Paul Cornett
2020-03-11 22:10:22 -07:00
parent 4a8a61f6d6
commit 81309f083d
3 changed files with 8 additions and 1 deletions

View File

@@ -6011,6 +6011,8 @@ void wxWindowGTK::SetScrollbar(int orient,
range =
thumbVisible = 1;
}
else if (thumbVisible <= 0)
thumbVisible = 1;
g_signal_handlers_block_by_func(
sb, (void*)gtk_scrollbar_value_changed, this);