Honor the sorting during selection.
This commit is contained in:
parent
ef8499e6a8
commit
188173ca6d
@ -155,6 +155,7 @@ public class ComponentPresetChooserDialog extends JDialog {
|
|||||||
if (!okClicked)
|
if (!okClicked)
|
||||||
return null;
|
return null;
|
||||||
int row = componentSelectionTable.getSelectedRow();
|
int row = componentSelectionTable.getSelectedRow();
|
||||||
|
row = componentSelectionTable.convertRowIndexToModel(row);
|
||||||
return presets.get(row);
|
return presets.get(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user