fix failed assertions in wxqt from newer wx library code

This commit is contained in:
Sean D'Epagnier
2016-08-24 15:55:39 -04:00
committed by Vadim Zeitlin
parent 4e1ddab3ad
commit 8be71bd900
4 changed files with 12 additions and 6 deletions

View File

@@ -562,9 +562,8 @@ void wxWindowQt::SetScrollbar( int orientation, int pos, int thumbvisible, int r
void wxWindowQt::SetScrollPos( int orientation, int pos, bool WXUNUSED( refresh ))
{
wxScrollBar *scrollBar = QtGetScrollBar( orientation );
wxCHECK_RET( scrollBar, "Invalid scrollbar" );
scrollBar->SetThumbPosition( pos );
if(scrollBar)
scrollBar->SetThumbPosition( pos );
}
int wxWindowQt::GetScrollPos( int orientation ) const