Index: src/core/SkColorSpaceXform.cpp |
diff --git a/src/core/SkColorSpaceXform.cpp b/src/core/SkColorSpaceXform.cpp |
index b555d599c4c5a841277ddc4b4bd62fb1c55a088b..6f2f75b8b1537e29a8725a6e777f4def6390be20 100644 |
--- a/src/core/SkColorSpaceXform.cpp |
+++ b/src/core/SkColorSpaceXform.cpp |
@@ -355,7 +355,7 @@ std::unique_ptr<SkColorSpaceXform> SkColorSpaceXform::New(SkColorSpace* srcSpace |
srcToDst.setIdentity(); |
csm = kFull_ColorSpaceMatch; |
} else { |
- srcToDst.setConcat(as_CSB(dstSpace)->fromXYZD50(), srcSpace->toXYZD50()); |
+ srcToDst.setConcat(as_CSB(dstSpace)->fromXYZD50(), as_CSB(srcSpace)->toXYZD50()); |
if (is_almost_identity(srcToDst)) { |
srcToDst.setIdentity(); |