Fix crash in wxGauge with wxGA_PROGRESS under macOS

Hide, instead of destroying, the progress indicator in reset() to
prevent crashes if SetValue() is called later.

Closes https://github.com/wxWidgets/wxWidgets/pull/1137
This commit is contained in:
konstantin.matveyev
2019-01-13 00:03:43 +03:00
committed by Vadim Zeitlin
parent b10c6ab3a8
commit a985c84966

View File

@@ -65,7 +65,9 @@
- (void)reset
{
[m_dockTile setContentView:nil];
[m_progIndicator setHidden:YES];
[m_dockTile display];
}
@end