summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /generic/tkCanvPoly.c
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'generic/tkCanvPoly.c')
-rw-r--r--generic/tkCanvPoly.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c
index f40a922..dfb0c75 100644
--- a/generic/tkCanvPoly.c
+++ b/generic/tkCanvPoly.c
@@ -95,8 +95,7 @@ static const Tk_ConfigSpec configSpecs[] = {
NULL, offsetof(PolygonItem, outline.dash),
TK_CONFIG_NULL_OK, &dashOption},
{TK_CONFIG_PIXELS, "-dashoffset", NULL, NULL,
- "0", offsetof(PolygonItem, outline.offset),
- TK_CONFIG_DONT_SET_DEFAULT, NULL},
+ "0", offsetof(PolygonItem, outline.offsetObj), TK_CONFIG_OBJS, NULL},
{TK_CONFIG_CUSTOM, "-disableddash", NULL, NULL,
NULL, offsetof(PolygonItem, outline.disabledDash),
TK_CONFIG_NULL_OK, &dashOption},
@@ -680,7 +679,7 @@ ComputePolygonBbox(
if (index < 0) {
index += (polyPtr->numPoints - polyPtr->autoClosed) * 2;
}
- tsoffset->xoffset = (int) (polyPtr->coordPtr[index] + 0.5);
+ tsoffset->xoffset = (int) (polyPtr->coordPtr[index] + 0.5);
tsoffset->yoffset = (int) (polyPtr->coordPtr[index+1] + 0.5);
} else {
if (tsoffset->flags & TK_OFFSET_LEFT) {
@@ -1100,7 +1099,7 @@ PolygonInsert(
* [5fb8145997].
*/
- double width;
+ double width;
int j;
itemPtr->redraw_flags |= TK_ITEM_DONT_REDRAW;