diff options
Diffstat (limited to 'docs/SkIRect_Reference.bmh')
-rw-r--r-- | docs/SkIRect_Reference.bmh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/SkIRect_Reference.bmh b/docs/SkIRect_Reference.bmh index 0d7924ce07..7c79c552b1 100644 --- a/docs/SkIRect_Reference.bmh +++ b/docs/SkIRect_Reference.bmh @@ -1489,9 +1489,10 @@ Asserts if either a or b is empty, and if SK_DEBUG is defined. #Example SkIRect result; - bool intersected = result.intersectNoEmptyCheck({ 10, 40, 50, 80 }, { 30, 60, 70, 90 }); - SkDebugf("intersection: %d, %d, %d, %d\n", - result.left(), result.top(), result.right(), result.bottom()); + if (result.intersectNoEmptyCheck({ 10, 40, 50, 80 }, { 30, 60, 70, 90 })) { + SkDebugf("intersection: %d, %d, %d, %d\n", + result.left(), result.top(), result.right(), result.bottom()); + } #StdOut intersection: 30, 60, 50, 80 ## |