Commit a2bd0738 authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix RadialSlider

    - fix several parameters wrongly spelled (case sensitive)
     (led to crash in atof)
    - fix uninitialized m_position variable
parent 20a67d03
......@@ -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(
......
......@@ -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++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment