This commit is contained in:
@@ -86,9 +86,9 @@ QString RawSwitch::toString(Board::Type board, const GeneralSettings * const gen
|
|||||||
|
|
||||||
case SWITCH_TYPE_VIRTUAL:
|
case SWITCH_TYPE_VIRTUAL:
|
||||||
if (modelData)
|
if (modelData)
|
||||||
return modelData->logicalSw[index].nameToString(index);
|
return modelData->logicalSw[index].nameToString(index-1);
|
||||||
else
|
else
|
||||||
return LogicalSwitchData().nameToString(index);
|
return LogicalSwitchData().nameToString(index-1);
|
||||||
|
|
||||||
case SWITCH_TYPE_MULTIPOS_POT:
|
case SWITCH_TYPE_MULTIPOS_POT:
|
||||||
if (!Boards::getCapability(board, Board::MultiposPotsPositions))
|
if (!Boards::getCapability(board, Board::MultiposPotsPositions))
|
||||||
|
|||||||
Reference in New Issue
Block a user