diff options
-rw-r--r-- | generic/tkCanvPoly.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index 3da4403..aeca8a7 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1136,10 +1136,7 @@ PolygonInsert( itemPtr->redraw_flags &= ~TK_ITEM_DONT_REDRAW; } else { - if (beforeThis < 0) { - beforeThis += length; - } - beforeThis -= beforeThis % 6; + beforeThis -= abs(beforeThis) % 6; objc += 4; } |