diff options
author | fvogel <fvogelnew1@free.fr> | 2019-12-24 13:24:47 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-12-24 13:24:47 (GMT) |
commit | ef83d456ae8d36339b13f6b426f9410fb3e750aa (patch) | |
tree | 196d75368a74d09724897a3a02a55b3ec5d3ce20 /generic/tkCanvas.c | |
parent | 24d5264e2ac5971cf61105b3b3aedc000d8c8051 (diff) | |
download | tk-ef83d456ae8d36339b13f6b426f9410fb3e750aa.zip tk-ef83d456ae8d36339b13f6b426f9410fb3e750aa.tar.gz tk-ef83d456ae8d36339b13f6b426f9410fb3e750aa.tar.bz2 |
Restore tabs on lines that were actually not changed by the fix.
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 9f57971..5e89c6d 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -1449,8 +1449,8 @@ CanvasWidgetCmd( tag = Tk_GetUid(Tcl_GetString(objv[2])); } FOR_EVERY_CANVAS_ITEM_MATCHING(objv[2], &searchPtr, goto done) { - for (i = itemPtr->numTags-1; i >= 0; i--) { - if (itemPtr->tagPtr[i] == tag) { + for (i = itemPtr->numTags-1; i >= 0; i--) { + if (itemPtr->tagPtr[i] == tag) { /* * Don't shuffle the tags sequence: memmove the tags. @@ -1459,15 +1459,15 @@ CanvasWidgetCmd( memmove((void *)(itemPtr->tagPtr + i), (void *)(itemPtr->tagPtr + i + 1), sizeof(Tk_Uid *) * (itemPtr->numTags - (i+1))); - itemPtr->numTags--; + itemPtr->numTags--; /* * There must be no break here: all tags with the same name must * be deleted. */ - } - } + } + } } break; } |