From b85fc988de7fa7f072cc00798f95138fb55c2640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 1 Mar 2017 12:37:08 +0100 Subject: [PATCH] Minor comment cleanup. --- src/path/PathItem.Boolean.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 4068b0be..03a36fbd 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -550,20 +550,21 @@ PathItem.inject(new function() { windingR += winding; } } else if (a0 != a3Prev) { - // A horizontal curve is between current and previous - // non-horizontal curve + // Handle a horizontal curve between the current and + // previous non-horizontal curve. See + // #1261#issuecomment-282726147 for a detailed explanation: if (a3Prev < paR && a > paR) { - // Right winding was not added before, so add it now + // Right winding was not added before, so add it now. windingR += winding; onPath = true; } else if (a3Prev > paL && a < paL) { - // Left winding was not added before, so add it now + // Left winding was not added before, so add it now. windingL += winding; onPath = true; } - // TODO: Determine how to handle quality when curve is crossed - // at starting point. Do we always need to set to 0? } + // TODO: Determine how to handle quality when curve is crossed + // at starting point. Do we always need to set to 0? quality = 0; } vPrev = v;