summaryrefslogtreecommitdiff
path: root/sources/prefs/VSPrefs.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-11 11:00:13 +0000
committerPaul Buetow <paul@buetow.org>2008-06-11 11:00:13 +0000
commit4f9a13071e3aba7291711a62358ab83374321433 (patch)
tree0c4c70866c7389694876121643cb533d8dc2e558 /sources/prefs/VSPrefs.java
parent371b00f2c8bd3944d636e81ed0cb422b3d011ee3 (diff)
added color copy constructor in VSPrefs.
Diffstat (limited to 'sources/prefs/VSPrefs.java')
-rw-r--r--sources/prefs/VSPrefs.java7
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));
+ }
}
/**