[BUG?] changeViewZOrder not working on CScrollView


I’ve just noticed that the changeViewZOrder method is not working on a CScrollView.
The method is not overridden in the CScrollView class, so the CViewContainer implementation is getting called and it fails to detect the child view for which the Z order must be changed.

I’ve manually got it to work by simply overriding the method in the CScrollView class and forwarding the call to the internal CScrollView member:

bool CScrollView::changeViewZOrder(CView* view, uint32_t newIndex)
	return sc->changeViewZOrder(view, newIndex); 

Anything wrong with it? Is there a better way to fix the issue?


I’ve fixed this now and it will be part of the official VSTGUI repository some day.