mirror of https://github.com/rusefi/RomRaider.git
Fixed some Table1D label bugs
This commit is contained in:
parent
3729a9ea51
commit
b500baf100
|
@ -84,11 +84,6 @@ public abstract class Table implements Serializable {
|
|||
BOSCH_SUBTRACT
|
||||
}
|
||||
|
||||
protected Table() {
|
||||
//Add Raw Scale
|
||||
addScale(new Scale());
|
||||
};
|
||||
|
||||
public void setTableView(TableView v) {
|
||||
this.tableView = v;
|
||||
}
|
||||
|
@ -151,6 +146,9 @@ public abstract class Table implements Serializable {
|
|||
// reset locked status
|
||||
locked = tempLock;
|
||||
calcCellRanges();
|
||||
|
||||
//Add Raw Scale
|
||||
addScale(new Scale());
|
||||
}
|
||||
|
||||
public abstract TableType getType();
|
||||
|
|
|
@ -45,8 +45,10 @@ public class Table1D extends Table {
|
|||
@Override
|
||||
public void setCurrentScale(Scale curScale) {
|
||||
this.curScale = curScale;
|
||||
|
||||
if(tableView!=null) tableView.drawTable();
|
||||
|
||||
if(getAxisParent() == null && tableView!=null) {
|
||||
tableView.drawTable();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -365,8 +365,11 @@ public class Table1DView extends TableView {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void updateTableLabel() {
|
||||
this.table.getAxisParent().getTableView().updateTableLabel();
|
||||
if(this.table.getAxisParent() == null) {
|
||||
super.updateTableLabel();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -194,6 +194,9 @@ public class Table3D extends Table {
|
|||
// reset locked status
|
||||
locked = tempLock;
|
||||
calcCellRanges();
|
||||
|
||||
//Add Raw Scale
|
||||
addScale(new Scale());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -84,6 +84,8 @@ public class Table3DView extends TableView {
|
|||
|
||||
if(yAxis!=null)
|
||||
yAxis.drawTable();
|
||||
|
||||
updateTableLabel();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue