Don't create slider with invalid range in mediaplayer sample.
Use dummy but valid [0, 1] range instead of invalid [0, 0] one. Closes #12828. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -1645,7 +1645,7 @@ wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentF | |||||||
|     // |     // | ||||||
|     m_slider = new wxSlider(this, wxID_SLIDER, 0, // init |     m_slider = new wxSlider(this, wxID_SLIDER, 0, // init | ||||||
|                             0, // start |                             0, // start | ||||||
|                             0, // end |                             1, // end, dummy but must be greater than start | ||||||
|                             wxDefaultPosition, wxDefaultSize, |                             wxDefaultPosition, wxDefaultSize, | ||||||
|                             wxSL_HORIZONTAL ); |                             wxSL_HORIZONTAL ); | ||||||
|     sizer->Add(m_slider, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND , 5); |     sizer->Add(m_slider, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND , 5); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user