Comment 1 for bug 733793

Revision history for this message
hvdwolf (hvdwolf) wrote :

I'm very, very sorry. The code segment for the 2011.0 branch in the previous post was one of my latest tries (and doesn't even compile).

The correct code segment from the 2011.0 branch, that makes Hugin crash on OSX, is:
=====================================
void AboutDialog::SetMode(int newMode)
{
    if(m_mode==newMode){
        return;
    }

    switch ( newMode ) {

        case 0 :
            // about tab
            SetLogo(wxT("splash.png"));
            break;

        case 6 :
            // dedication tab
            SetLogo(wxT("dedication.png"));
            break;

        default :
            // all other tabs
            SetLogo(wxT("logo.png"));
    }

    m_mode=newMode;
    return;
};
=====================================