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:
committed by
Vadim Zeitlin
parent
b10c6ab3a8
commit
a985c84966
@@ -65,7 +65,9 @@
|
|||||||
|
|
||||||
- (void)reset
|
- (void)reset
|
||||||
{
|
{
|
||||||
[m_dockTile setContentView:nil];
|
[m_progIndicator setHidden:YES];
|
||||||
|
|
||||||
|
[m_dockTile display];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user