This avoids crash if wxVSCROLL or wxHSCROLL is used with wxGLCanvas which calls wxWindow::Create() after calling DontCreatePeer() because the Create() tries to use the not (yet) existent peer in MacCreateScrollBars(). Avoid this problem by moving the call to MacCreateScrollBars() to MacPostControlCreate(), which doesn't change anything for the windows that do not call DontCreatePeer(), but ensures that the peer already exists by the time MacPostControlCreate() is called for those that do. Closes #23536. |
||
|---|---|---|
| .. | ||
| msvc/wx | ||
| wx | ||