Check AND switch before clearing LS
This commit is contained in:
@@ -695,13 +695,14 @@ int ModelData::updateReference()
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (clearlsd) {
|
|
||||||
|
if (lsd->andsw != 0)
|
||||||
|
updateSwitchIntRef(lsd->andsw);
|
||||||
|
|
||||||
|
if (clearlsd && lsd->andsw == 0) {
|
||||||
lsd->clear();
|
lsd->clear();
|
||||||
appendUpdateReferenceParams(REF_UPD_TYPE_LOGICAL_SWITCH, REF_UPD_ACT_CLEAR, i);
|
appendUpdateReferenceParams(REF_UPD_TYPE_LOGICAL_SWITCH, REF_UPD_ACT_CLEAR, i);
|
||||||
}
|
}
|
||||||
else if (lsd->andsw != 0) {
|
|
||||||
updateSwitchIntRef(lsd->andsw);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//s1.report("Logical Switches");
|
//s1.report("Logical Switches");
|
||||||
|
|||||||
Reference in New Issue
Block a user