getCurrentAddress fix in SlotLabel.java

This commit is contained in:
Imbus 2024-06-13 16:11:07 +02:00
parent dfbb784a7d
commit 465700e196

View file

@ -32,7 +32,7 @@ public class SlotLabel extends ColoredLabel implements Observer {
if (o instanceof XLModel) { if (o instanceof XLModel) {
XLModel xlModel = (XLModel) o; XLModel xlModel = (XLModel) o;
if (xlModel.containsKey(address)) { if (xlModel.containsKey(address)) {
String tempCurrentAdress = xlModel.getAddressContent(address); String tempCurrentAdress = xlModel.getCurrentAddress();
xlModel.setCurrentAddress(address); xlModel.setCurrentAddress(address);
String content = xlModel.getAddressValue(address); String content = xlModel.getAddressValue(address);
setText(content); setText(content);