From a586b53c8af7bac8b71a702441d83c3906048e3e Mon Sep 17 00:00:00 2001 From: Olesya Smirnova Date: Wed, 9 Feb 2005 21:35:41 +0300 Subject: [PATCH] (no message) --- .../src/com/intellij/openapi/editor/colors/ColorKey.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java b/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java index e581ee40fb86..03592f5ba1fd 100644 --- a/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java +++ b/openapi/src/com/intellij/openapi/editor/colors/ColorKey.java @@ -93,11 +93,10 @@ public final class ColorKey implements Comparable { if (key == null) { key = find(externalName); } - else { - LOG.assertTrue(key.getDefaultColor() == null, "default color already assigned"); - } - key.myDefaultColor = defaultColor; + if (key.getDefaultColor() == null) { + key.myDefaultColor = defaultColor; + } return key; } } \ No newline at end of file