Windows fix (works on wxWidgets-3.0) atleast