From a985c84966eda9adb88940fac0a12f2e656b5d61 Mon Sep 17 00:00:00 2001 From: "konstantin.matveyev" Date: Sun, 13 Jan 2019 00:03:43 +0300 Subject: [PATCH] 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 --- src/osx/cocoa/appprogress.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/appprogress.mm b/src/osx/cocoa/appprogress.mm index 80e86cb765..892bb89ef5 100644 --- a/src/osx/cocoa/appprogress.mm +++ b/src/osx/cocoa/appprogress.mm @@ -65,7 +65,9 @@ - (void)reset { - [m_dockTile setContentView:nil]; + [m_progIndicator setHidden:YES]; + + [m_dockTile display]; } @end