summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxge/skia/fx_skia_device.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index eacfd69c93..5f117cb4d6 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -522,7 +522,9 @@ void ClipAngledGradient(const SkPoint pts[2],
}
}
ASSERT(minBounds >= 0);
- ASSERT(maxBounds != minBounds && maxBounds >= 0);
+ ASSERT(maxBounds >= 0);
+ if (minBounds == maxBounds)
+ return;
// construct a clip parallel to the gradient that goes through
// rectPts[minBounds] and rectPts[maxBounds] and perpendicular to the
// gradient that goes through startEdgePt, endEdgePt.