Print at Dec 15, 2025, 3:53:13 PM View all posts in this thread on one page
Posted by digitaltrails at Mar 27, 2019, 3:52:36 AM
Adding a Text item turns off the base plan lock
I was trying to understand the code around adding Text items. It always unlocks the base plan due to newBasePlanLocked always being false because !isLabelPartOfBasePlan() is always false:

boolean newBasePlanLocked = basePlanLocked && !isLabelPartOfBasePlan(label);
doAddLabel(this.home, label, newBasePlanLocked);


and
protected boolean isLabelPartOfBasePlan(Label label) {
return true;
}


Is adding Text always supposed to unlock the base plan and leave it unlocked?