diff options
Diffstat (limited to 'sources/prefs/VSPrefs.java')
| -rw-r--r-- | sources/prefs/VSPrefs.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java index e9ede88..1746e32 100644 --- a/sources/prefs/VSPrefs.java +++ b/sources/prefs/VSPrefs.java @@ -1062,9 +1062,12 @@ public class VSPrefs implements VSSerializable { * @param keys the keys */ public void copyColors(VSPrefs copyInto, String[] keys) { - for (String key : keys) - copyInto.initColor(key, getColor(key), + for (String key : keys) { + Color color = getColor(key); + float comp[] = color.getComponents(null); + copyInto.initColor(key, new Color(comp[0], comp[1], comp[2]), getDescription(COLOR_PREFIX + key)); + } } /** |
