summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-01-05 20:33:39 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-01-05 20:33:39 (GMT)
commit5d20906695103bcff6e8b250372db81d240ac320 (patch)
tree45afac43dc944567608f67106a234a9ba3b1733d /generic/tkText.c
parent7bd95f1d4f8ac4e2de1aaf5f769cefd4da481cbf (diff)
parent8a3569b1a0838f8f500218837c0ff6ef13ac93cd (diff)
downloadtk-5d20906695103bcff6e8b250372db81d240ac320.zip
tk-5d20906695103bcff6e8b250372db81d240ac320.tar.gz
tk-5d20906695103bcff6e8b250372db81d240ac320.tar.bz2
merge 8.6
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 44e2669..0a4a652 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -8,7 +8,7 @@
*
* Copyright (c) 1992-1994 The Regents of the University of California.
* Copyright (c) 1994-1996 Sun Microsystems, Inc.
- * Copyright (c) 1999 by Scriptics Corporation.
+ * Copyright (c) 1999 Scriptics Corporation.
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
@@ -2284,7 +2284,11 @@ ConfigureText(
|| (textPtr->selTagPtr->spacing2String != NULL)
|| (textPtr->selTagPtr->spacing3String != NULL)
|| (textPtr->selTagPtr->tabStringPtr != NULL)
- || (textPtr->selTagPtr->wrapMode != TEXT_WRAPMODE_NULL)) {
+ || (textPtr->selTagPtr->tabStyle == TK_TEXT_TABSTYLE_TABULAR)
+ || (textPtr->selTagPtr->tabStyle == TK_TEXT_TABSTYLE_WORDPROCESSOR)
+ || (textPtr->selTagPtr->wrapMode == TEXT_WRAPMODE_CHAR)
+ || (textPtr->selTagPtr->wrapMode == TEXT_WRAPMODE_NONE)
+ || (textPtr->selTagPtr->wrapMode == TEXT_WRAPMODE_WORD)) {
textPtr->selTagPtr->affectsDisplay = 1;
textPtr->selTagPtr->affectsDisplayGeometry = 1;
}