From 7318d80ec013b6392e86a4a289ed927111cc06b5 Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Thu, 9 Sep 2010 15:06:44 +0400 Subject: [PATCH] IDEA-58493 Settings->Injections: clicking on entry opens wrong detail editor --- .../intellij/plugins/intelliLang/InjectionsSettingsUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/InjectionsSettingsUI.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/InjectionsSettingsUI.java index e65500c2428c..d446925dd85c 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/InjectionsSettingsUI.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/InjectionsSettingsUI.java @@ -371,7 +371,7 @@ public class InjectionsSettingsUI implements Configurable { private List getSelectedInjections() { final ArrayList toRemove = new ArrayList(); for (int row : myInjectionsTable.getSelectedRows()) { - toRemove.add(myInjectionsTable.getItems().get(row)); + toRemove.add(myInjectionsTable.getItems().get(myInjectionsTable.convertRowIndexToModel(row))); } return toRemove; } @@ -379,7 +379,7 @@ public class InjectionsSettingsUI implements Configurable { @Nullable private BaseInjection getSelectedInjection() { final int row = myInjectionsTable.getSelectedRow(); - return row < 0? null : myInjectionsTable.getItems().get(row); + return row < 0? null : myInjectionsTable.getItems().get(myInjectionsTable.convertRowIndexToModel(row)); } private void performAdd(final AnActionEvent e) {