diff options
author | culler <culler> | 2017-10-30 18:25:59 (GMT) |
---|---|---|
committer | culler <culler> | 2017-10-30 18:25:59 (GMT) |
commit | 39205d2bf1e853b4745274f77115a60293dec183 (patch) | |
tree | 94758e5ce5c39c35c7dff0bc65f81da969fe6b06 /generic | |
parent | 60d5bf93ccc95612d7bbed628289755086b8059f (diff) | |
download | tk-39205d2bf1e853b4745274f77115a60293dec183.zip tk-39205d2bf1e853b4745274f77115a60293dec183.tar.gz tk-39205d2bf1e853b4745274f77115a60293dec183.tar.bz2 |
Reworked the regression test so that it would more precisely
target the changed behavior of DisplayText.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 7 | ||||
-rw-r--r-- | generic/tkTextWind.c | 9 |
2 files changed, 6 insertions, 10 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 24184e3..238ae1a 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -4148,7 +4148,6 @@ DisplayText( numRedisplays++; if (tkTextDebug) { Tcl_SetVar2(interp, "tk_textRedraw", NULL, "", TCL_GLOBAL_ONLY); - Tcl_SetVar2(interp, "tk_textEmbWinDisplay", NULL, "", TCL_GLOBAL_ONLY); } /* @@ -4509,6 +4508,12 @@ DisplayText( x = -chunkPtr->width; } + if (tkTextDebug) { + char string[TK_POS_CHARS]; + + TkTextPrintIndex(textPtr, &dlPtr->index, string); + LOG("tk_textEmbWinDisplay", string); + } TkTextEmbWinDisplayProc(textPtr, chunkPtr, x, dlPtr->spaceAbove, dlPtr->height-dlPtr->spaceAbove-dlPtr->spaceBelow, diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c index dcee36e..c9fc20f 100644 --- a/generic/tkTextWind.c +++ b/generic/tkTextWind.c @@ -1112,15 +1112,6 @@ TkTextEmbWinDisplayProc( return; } - if (tkTextDebug) { - /* - * The variable tk_textEmbWinDisplay is cleared in DisplayText. - */ - - Tcl_SetVar2(textPtr->interp, "tk_textEmbWinDisplay", NULL, - Tk_PathName(tkwin), - TCL_GLOBAL_ONLY|TCL_APPEND_VALUE|TCL_LIST_ELEMENT); - } if ((x + chunkPtr->width) <= 0) { /* * The window is off-screen; just unmap it. |