Index: src/pathops/SkPathWriter.cpp |
diff --git a/src/pathops/SkPathWriter.cpp b/src/pathops/SkPathWriter.cpp |
index 5559026119a39227325176612c7fac45a5337d08..46ec7b9131f6aa712caf92e402081f1d922c82f2 100644 |
--- a/src/pathops/SkPathWriter.cpp |
+++ b/src/pathops/SkPathWriter.cpp |
@@ -90,7 +90,7 @@ void SkPathWriter::init() { |
} |
bool SkPathWriter::isClosed() const { |
- return !fEmpty && fFirstPt == fDefer[1]; |
+ return !fEmpty && SkDPoint::ApproximatelyEqual(fFirstPt, fDefer[1]); |
} |
void SkPathWriter::lineTo() { |