]> git.gag.com Git - debian/openrocket/commitdiff
Honor the sorting during selection.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 12 Apr 2012 04:13:40 +0000 (04:13 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Thu, 12 Apr 2012 04:13:40 +0000 (04:13 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@539 180e2498-e6e9-4542-8430-84ac67f01cd8

core/src/net/sf/openrocket/gui/dialogs/preset/ComponentPresetChooserDialog.java

index e82577453fbfa6ac750afdd40320279f21a26c8d..d501f7e8378bff43a6830c2524654ba1df5f13af 100644 (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);
        }