summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-12-08 20:46:48 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-12-08 20:46:48 (GMT)
commite63cc287cacc144a9a0a5c405d49cca44b37e574 (patch)
tree70152a0b86c50fe66bc3c500f160f1ec93eae210
parent195423e01c2b2d2e4c06c043c4dc69a9711b5358 (diff)
downloadtk-e63cc287cacc144a9a0a5c405d49cca44b37e574.zip
tk-e63cc287cacc144a9a0a5c405d49cca44b37e574.tar.gz
tk-e63cc287cacc144a9a0a5c405d49cca44b37e574.tar.bz2
Micro-optimization in tkTextDisp.c
-rw-r--r--generic/tkTextDisp.c4
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);