]> git.sesse.net Git - vlc/commitdiff
skins2: fix RadialSlider
authorErwan Tulou <erwan10@videolan.org>
Thu, 1 Jul 2010 08:21:36 +0000 (10:21 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 1 Jul 2010 08:59:21 +0000 (10:59 +0200)
    - fix several parameters wrongly spelled (case sensitive)
     (led to crash in atof)
    - fix uninitialized m_position variable

modules/gui/skins2/controls/ctrl_radialslider.cpp
modules/gui/skins2/parser/skin_parser.cpp

index 6aece647d9d86db9777c178fba071aa020185998..0ed18751c800c406237ac0a14953ce086d997ec8 100644 (file)
@@ -41,7 +41,7 @@ CtrlRadialSlider::CtrlRadialSlider( intf_thread_t *pIntf,
     CtrlGeneric( pIntf, rHelp, pVisible ), m_fsm( pIntf ), m_numImg( numImg ),
     m_rVariable( rVariable ), m_minAngle( minAngle ), m_maxAngle( maxAngle ),
     m_cmdUpDown( this ), m_cmdDownUp( this ),
-    m_cmdMove( this )
+    m_cmdMove( this ), m_position( 0 )
 {
     // Build the images of the sequence
     m_pImgSeq = OSFactory::instance( getIntf() )->createOSGraphics(
index 29df8f46429b8c7044f0feff356c17b5ae38a645..0b17c17599d18aeda32e5cbb1b08ba173e9a946e 100644 (file)
@@ -460,8 +460,8 @@ void SkinParser::handleBeginElement( const string &rName, AttrList_t &attr )
                 attr["lefttop"], attr["rightbottom"],
                 convertBoolean( attr["xkeepratio"] ),
                 convertBoolean( attr["ykeepratio"] ), attr["sequence"],
-                atoi( attr["nbImages"] ), atof( attr["minAngle"] ) * M_PI /180,
-                atof( attr["maxAngle"] ) * M_PI / 180, attr["value"],
+                atoi( attr["nbimages"] ), atof( attr["minangle"] ) * M_PI /180,
+                atof( attr["maxangle"] ) * M_PI / 180, attr["value"],
                 attr["tooltiptext"], attr["help"], m_curLayer, m_curWindowId,
                 m_curLayoutId, m_panelStack.back() );
         m_curLayer++;