fix ScreenOptionsMaster::ExportOption ROW_CONFIG and ROW_SAVE_TO_PROFILE with NAV_FIRST_CHOICE_GOES_DOWN
This commit is contained in:
@@ -372,12 +372,12 @@ void ScreenOptionsMaster::ImportOption( const OptionRowData &row, const OptionRo
|
|||||||
case ROW_CONFIG:
|
case ROW_CONFIG:
|
||||||
{
|
{
|
||||||
int iSelection = hand.opt->Get( row.choices );
|
int iSelection = hand.opt->Get( row.choices );
|
||||||
SelectExactlyOne( iSelection+(row.bMultiSelect?1:0), vbSelectedOut );
|
SelectExactlyOne( iSelection+(NAV_FIRST_CHOICE_GOES_DOWN?1:0), vbSelectedOut );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
case ROW_SAVE_TO_PROFILE:
|
case ROW_SAVE_TO_PROFILE:
|
||||||
SelectExactlyOne( 0+(row.bMultiSelect?1:0), vbSelectedOut );
|
SelectExactlyOne( 0+(NAV_FIRST_CHOICE_GOES_DOWN?1:0), vbSelectedOut );
|
||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -450,7 +450,7 @@ int ScreenOptionsMaster::ExportOption( const OptionRowData &row, const OptionRow
|
|||||||
|
|
||||||
case ROW_CONFIG:
|
case ROW_CONFIG:
|
||||||
{
|
{
|
||||||
int sel = GetOneSelection( vbSelected );
|
int sel = GetOneSelection(vbSelected) - (NAV_FIRST_CHOICE_GOES_DOWN?1:0);
|
||||||
|
|
||||||
/* Get the original choice. */
|
/* Get the original choice. */
|
||||||
int Original = hand.opt->Get( row.choices );
|
int Original = hand.opt->Get( row.choices );
|
||||||
@@ -471,7 +471,7 @@ int ScreenOptionsMaster::ExportOption( const OptionRowData &row, const OptionRow
|
|||||||
|
|
||||||
case ROW_SAVE_TO_PROFILE:
|
case ROW_SAVE_TO_PROFILE:
|
||||||
{
|
{
|
||||||
int sel = GetOneSelection( vbSelected );
|
int sel = GetOneSelection(vbSelected) - (NAV_FIRST_CHOICE_GOES_DOWN?1:0);
|
||||||
|
|
||||||
if( sel == 1 )
|
if( sel == 1 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user