diff --git a/contrib/src/gizmos/splittree.cpp b/contrib/src/gizmos/splittree.cpp index 83ccea4ec8..6d307776fc 100644 --- a/contrib/src/gizmos/splittree.cpp +++ b/contrib/src/gizmos/splittree.cpp @@ -210,7 +210,7 @@ Plus, wxGenericTreeCtrl::OnPaint will reset the device origin. // Assumption: wxGenericTreeCtrl will adjust the scrollbars automatically, // since it'll call SetScrollbars and we've defined this to Do The Right Thing. - if (!IsKindOf(CLASSINFO(wxGenericTreeCtrl))) + if (IsKindOf(CLASSINFO(wxGenericTreeCtrl))) return; wxScrolledWindow* scrolledWindow = GetScrolledWindow();