Fix error where typ and from could have the same value

pull/16/head
René Løwe Jacobsen 9 years ago
parent c3c9a900ac
commit d511e2ab72

@ -214,8 +214,10 @@
if (!ranges[typ][typ]) { // no alpha|HEX
if (type !== typ && typ !== 'XYZ') {
from = exceptions[typ] || 'rgb';
if (typ !== from) {
colors[typ] = convert[from + '2' + typ](colors[from]);
}
}
if (!RND[typ]) RND[typ] = {};
modes = colors[typ];

Loading…
Cancel
Save