Index: Source/devtools/front_end/elements/Spectrum.js |
diff --git a/Source/devtools/front_end/elements/Spectrum.js b/Source/devtools/front_end/elements/Spectrum.js |
index 083c394c4d4038449fc0dd211fa986da395caf58..2cd82e2f3c299bf70a71125bafb4335a6e8f5c24 100644 |
--- a/Source/devtools/front_end/elements/Spectrum.js |
+++ b/Source/devtools/front_end/elements/Spectrum.js |
@@ -159,7 +159,7 @@ WebInspector.Spectrum = function() |
var hsva = this._hsv.slice(); |
hsva[3] = Number.constrain(newAlpha, 0, 1); |
var colorFormat = undefined; |
- if (this._color().hasAlpha() && (this._colorFormat === WebInspector.Color.Format.ShortHEX || this._colorFormat === WebInspector.Color.Format.HEX || this._colorFormat === WebInspector.Color.Format.Nickname)) |
+ if (hsva[3] !== 1 && (this._colorFormat === WebInspector.Color.Format.ShortHEX || this._colorFormat === WebInspector.Color.Format.HEX || this._colorFormat === WebInspector.Color.Format.Nickname)) |
colorFormat = WebInspector.Color.Format.RGB; |
this._innerSetColor(hsva, "", colorFormat, WebInspector.Spectrum._ChangeSource.Other); |
} |