]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't create slider with invalid range in mediaplayer sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2011 18:43:54 +0000 (18:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2011 18:43:54 +0000 (18:43 +0000)
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

samples/mediaplayer/mediaplayer.cpp

index e06f6d17330a3d8041f9fd4b369f03ce2e030172..56d74e0f5851f5fc2d89b7c9f2f638bd16655cee 100644 (file)
@@ -1645,7 +1645,7 @@ wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame* parentF
     //
     m_slider = new wxSlider(this, wxID_SLIDER, 0, // init
                             0, // start
-                            0, // end
+                            1, // end, dummy but must be greater than start
                             wxDefaultPosition, wxDefaultSize,
                             wxSL_HORIZONTAL );
     sizer->Add(m_slider, 0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND , 5);