GTK+ doesn't like slider with min=max values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -357,6 +357,8 @@ void wxSlider::GTKSetValue(int value)
|
||||
void wxSlider::SetRange( int minValue, int maxValue )
|
||||
{
|
||||
m_blockScrollEvent = true;
|
||||
if (minValue == maxValue)
|
||||
maxValue++;
|
||||
gtk_range_set_range(GTK_RANGE (m_widget), minValue, maxValue);
|
||||
gtk_range_set_increments(GTK_RANGE (m_widget), 1, (maxValue - minValue + 9) / 10);
|
||||
m_blockScrollEvent = false;
|
||||
|
Reference in New Issue
Block a user