About window crashes on OSX for 2011.0 beta versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Hugin |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The aboutdialog.cpp crashes hugin in the 2011 branch. The aboutdialog in the trunk works correctly.
This is due to the fact that the aboutdialog.cpp within the 2011.0 (beta) branch is different from the trunk one.
I have already been fiddling with the code the past couple of days but I'm obviously an even worse programmer than I expected to be as I can't repair it.
Can this please be fixed?
The trunk contains the code (This functions!):
=======
void AboutDialog:
{
if(
return;
}
if(
return;
}
// image to be displayed on dedication tab
if(newMode==6){
return;
}
// image to be displayed on any other tab
if(m_mode==6){
return;
}
};
=======
The 2011.0 branch contains the code (This crashes hugin!):
=======
void AboutDialog:
{
if(
return;
}
switch ( newMode ) {
case 0 :
// about tab
wxString strFile = MacGetPathToBun
SetLogo(
break;
case 6 :
// dedication tab
strFile = MacGetPathToBun
SetLogo(
break;
default :
// all other tabs
strFile = MacGetPathToBun
SetLogo(
}
m_mode=newMode;
return;
};
=======
Changed in hugin: | |
status: | Fix Committed → Fix Released |
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: ======= ======= ======= ======= == :SetMode( int newMode) m_mode= =newMode) {
=======
void AboutDialog:
{
if(
return;
}
switch ( newMode ) {
case 0 :
SetLogo( wxT("splash. png"));
// about tab
break;
case 6 :
SetLogo( wxT("dedication .png")) ;
// dedication tab
break;
default :
SetLogo( wxT("logo. png"));
// all other tabs
}
m_mode=newMode; ======= ======= ======= ======= ==
return;
};
=======