diff options
author | das <das> | 2007-05-31 13:31:26 (GMT) |
---|---|---|
committer | das <das> | 2007-05-31 13:31:26 (GMT) |
commit | e9883bba4b0507959e2d037aca5db25e08a298cc (patch) | |
tree | 51a70f6a3cdd6d9096fbaa3989d94e4db6535f58 /generic/tkTextDisp.c | |
parent | b5ff147df52326c50db94be7cd268760f50e3a50 (diff) | |
download | tk-e9883bba4b0507959e2d037aca5db25e08a298cc.zip tk-e9883bba4b0507959e2d037aca5db25e08a298cc.tar.gz tk-e9883bba4b0507959e2d037aca5db25e08a298cc.tar.bz2 |
* generic/tkFont.c: #ifdef out debug msg printing to stderr.
* generic/tkTextDisp.c:
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index f42c086..2deca4e 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkTextDisp.c,v 1.63 2007/04/23 21:15:19 das Exp $ + * RCS: @(#) $Id: tkTextDisp.c,v 1.64 2007/05/31 13:31:26 das Exp $ */ #include "tkPort.h" @@ -8450,7 +8450,9 @@ RemoveFromBaseChunk( BaseCharInfo *bciPtr; if (chunkPtr->displayProc != CharDisplayProc) { +#ifdef DEBUG_LAYOUT_WITH_BASE_CHUNKS fprintf(stderr,"RemoveFromBaseChunk called with wrong chunk type\n"); +#endif return; } @@ -8469,11 +8471,13 @@ RemoveFromBaseChunk( 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 } - Tcl_DStringSetLength(&bciPtr->baseChars,ciPtr->baseOffset); + Tcl_DStringSetLength(&bciPtr->baseChars, ciPtr->baseOffset); /* * Invalidate the stored pixel width of the base chunk. |