From 729295d02fdd3d62647373f3d329ee67a5517314 Mon Sep 17 00:00:00 2001 From: Liam Treacy Date: Wed, 5 Dec 2018 14:36:01 +0000 Subject: [PATCH] Set wxGauge initial value correctly in wxQt The default value of QProgressBar is -1, while wxGauge initial value must be 0, so set it explicitly to fix a unit test failure with wxQt. Closes https://github.com/wxWidgets/wxWidgets/pull/1043 --- src/qt/gauge.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/gauge.cpp b/src/qt/gauge.cpp index ffa1c0963d..8952043db8 100644 --- a/src/qt/gauge.cpp +++ b/src/qt/gauge.cpp @@ -58,6 +58,7 @@ bool wxGauge::Create(wxWindow *parent, m_qtProgressBar->setOrientation( wxQtConvertOrientation( style, wxGA_HORIZONTAL )); m_qtProgressBar->setRange( 0, range ); m_qtProgressBar->setTextVisible( style & wxGA_TEXT ); + m_qtProgressBar->setValue(0); return QtCreateControl( parent, id, pos, size, style, validator, name ); }