Updates parent table when scale is changed in 1D tables

This commit is contained in:
Kevin Nderitu 2022-10-19 16:19:47 +03:00 committed by Dale Schultz
parent cfd4106613
commit ee316a5fcd
1 changed files with 4 additions and 0 deletions

View File

@ -752,6 +752,10 @@ public class TableToolBar extends JToolBar implements MouseListener, ItemListene
// scale changed
try {
curTable.setScaleByCategory((String)scaleSelection.getSelectedItem());
if(curTable instanceof Table1D) {
Table parentTable = ((Table1D)curTable).getAxisParent();
parentTable.getTableView().updateTableLabel();
}
updateToolbarIncrementDecrementValues();
} catch (NameNotFoundException e1) {
e1.printStackTrace();