diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-19 13:33:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-19 13:33:54 (GMT) |
commit | 93222e57379094d593fc30ffd12f32099789a060 (patch) | |
tree | 59a078ee5554d028b464b4bcc41a39c99e0c9fec /generic | |
parent | 2ff5fda0fe162179358a1fdd26adefa380b72286 (diff) | |
download | tk-93222e57379094d593fc30ffd12f32099789a060.zip tk-93222e57379094d593fc30ffd12f32099789a060.tar.gz tk-93222e57379094d593fc30ffd12f32099789a060.tar.bz2 |
Eliminate empty if() statement, if DEBUG_LAYOUT_WITH_BASE_CHUNKS is not defined. (backported from androwish. Thanks, Christian!)
Diffstat (limited to 'generic')
-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 371e910..9c2f536 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); |