diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-02 15:08:27 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-02 15:08:27 (GMT) |
commit | db1813195a62a66315c34ba2b4a341f3efb331a9 (patch) | |
tree | 60d2477ada09b28f45c1e8594004153451f10785 /generic/tkText.c | |
parent | 309c748ad6d849d9cdb327bed24cff7e04f7ebd0 (diff) | |
download | tk-db1813195a62a66315c34ba2b4a341f3efb331a9.zip tk-db1813195a62a66315c34ba2b4a341f3efb331a9.tar.gz tk-db1813195a62a66315c34ba2b4a341f3efb331a9.tar.bz2 |
TIP #613 demo: rewrite "place" and text tag handling (-elide, -overstrike, -underline) using the new functionality
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index ffe8ab4..b1475b0 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -2273,7 +2273,7 @@ ConfigureText( } textPtr->selTagPtr->affectsDisplay = 0; textPtr->selTagPtr->affectsDisplayGeometry = 0; - if ((textPtr->selTagPtr->elideString != NULL) + if ((textPtr->selTagPtr->elide >= 0) || (textPtr->selTagPtr->tkfont != NULL) || (textPtr->selTagPtr->justifyString != NULL) || (textPtr->selTagPtr->lMargin1String != NULL) @@ -2299,9 +2299,9 @@ ConfigureText( || (textPtr->selTagPtr->fgColor != NULL) || (textPtr->selTagPtr->selFgColor != NULL) || (textPtr->selTagPtr->fgStipple != None) - || (textPtr->selTagPtr->overstrikeString != NULL) + || (textPtr->selTagPtr->overstrike >= 0) || (textPtr->selTagPtr->overstrikeColor != NULL) - || (textPtr->selTagPtr->underlineString != NULL) + || (textPtr->selTagPtr->underline >= 0) || (textPtr->selTagPtr->underlineColor != NULL) || (textPtr->selTagPtr->lMarginColor != NULL) || (textPtr->selTagPtr->rMarginColor != NULL)) { |