Don't let JavaRearranger break a color scheme by altering original text attributes.

This commit is contained in:
Rustam Vishnyakov
2016-06-21 13:18:48 +03:00
parent a070b4e755
commit 2c5d691ec1
@@ -456,7 +456,7 @@ public class JavaRearranger implements Rearranger<JavaElementArrangementEntry>,
private static TextAttributes getAttributes(@NotNull EditorColorsScheme scheme, @NotNull TextAttributesKey ... keys) {
TextAttributes result = null;
for (TextAttributesKey key : keys) {
TextAttributes attributes = scheme.getAttributes(key);
TextAttributes attributes = scheme.getAttributes(key).clone();
if (attributes == null) {
continue;
}