Ticket #15338 (closed defect: fixed)
wxWindow::GetClientSize() can return negative size under OS X
|Reported by:||vadz||Owned by:||csomor|
We have a unit test failure
/Users/zeitlin/src/wx/git/tests/window/clientsize.cpp:90:Assertion Test name: ClientSizeTestCase::ClientSizeNotNegative assertion failed - Expression: szw.GetWidth() >= 0
currently and debugging I see that the value returned by GetClientSize() is indeed (-3,-3) and that this happens because this is what [NSView frame] returns.
Is there any way to prevent NSView from returning this nonsensical value? If not, we probably should ensure that we convert it to 0 ourselves.
Any other insights would be welcome, TIA!