diff options
author | fvogel <fvogelnew1@free.fr> | 2016-12-08 20:46:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-12-08 20:46:48 (GMT) |
commit | e63cc287cacc144a9a0a5c405d49cca44b37e574 (patch) | |
tree | 70152a0b86c50fe66bc3c500f160f1ec93eae210 | |
parent | 195423e01c2b2d2e4c06c043c4dc69a9711b5358 (diff) | |
download | tk-e63cc287cacc144a9a0a5c405d49cca44b37e574.zip tk-e63cc287cacc144a9a0a5c405d49cca44b37e574.tar.gz tk-e63cc287cacc144a9a0a5c405d49cca44b37e574.tar.bz2 |
Micro-optimization in tkTextDisp.c
-rw-r--r-- | generic/tkTextDisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index a6e665a..1c4925d 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -8981,13 +8981,13 @@ RemoveFromBaseChunk( bciPtr = baseCharChunkPtr->clientData; +#ifdef DEBUG_LAYOUT_WITH_BASE_CHUNKS if ((ciPtr->baseOffset + ciPtr->numBytes) != Tcl_DStringLength(&bciPtr->baseChars)) { -#ifdef DEBUG_LAYOUT_WITH_BASE_CHUNKS fprintf(stderr,"RemoveFromBaseChunk called with wrong chunk " "(not last)\n"); -#endif } +#endif Tcl_DStringSetLength(&bciPtr->baseChars, ciPtr->baseOffset); |