diff options
author | fvogel <fvogelnew1@free.fr> | 2021-11-05 21:19:51 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2021-11-05 21:19:51 (GMT) |
commit | eecd24c66bed6328fa05b404f7affd0c402db4ac (patch) | |
tree | 9cc0b0eac36d2951821efc892e4d115473212800 /generic | |
parent | 134e88c01569c2955dd2b2962831084bede47c1f (diff) | |
download | tk-eecd24c66bed6328fa05b404f7affd0c402db4ac.zip tk-eecd24c66bed6328fa05b404f7affd0c402db4ac.tar.gz tk-eecd24c66bed6328fa05b404f7affd0c402db4ac.tar.bz2 |
Fix last (known) issue with the optimization code for insertion of points in a polygon item of a canvas.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCanvPoly.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index b105630..3da4403 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1136,6 +1136,9 @@ PolygonInsert( itemPtr->redraw_flags &= ~TK_ITEM_DONT_REDRAW; } else { + if (beforeThis < 0) { + beforeThis += length; + } beforeThis -= beforeThis % 6; objc += 4; } |