Honor the sorting during selection.

This commit is contained in:
Kevin Ruland 2012-04-12 04:13:40 +00:00
parent ef8499e6a8
commit 188173ca6d

View File

@ -155,6 +155,7 @@ public class ComponentPresetChooserDialog extends JDialog {
if (!okClicked)
return null;
int row = componentSelectionTable.getSelectedRow();
row = componentSelectionTable.convertRowIndexToModel(row);
return presets.get(row);
}