summaryrefslogtreecommitdiff
path: root/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java')
-rw-r--r--platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java b/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java
index 65f2d758fcfd..a30ccd677682 100644
--- a/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java
+++ b/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java
@@ -471,9 +471,10 @@ public class RegistryUi implements Disposable {
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
myValue = ((MyTableModel)table.getModel()).getRegistryValue(row);
if (myValue.asColor(null) != null) {
- final Color color = ColorChooser.chooseColor(table, "Choose color", ((RegistryValue)value).asColor(Color.WHITE));
+ final Color color = ColorChooser.chooseColor(table, "Choose color", myValue.asColor(Color.WHITE));
if (color != null) {
myValue.setValue(color.getRed() + "," + color.getGreen() + "," + color.getBlue());
+ keyChanged(myValue.getKey());
}
return null;
} else if (myValue.isBoolean()) {