summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-11-15 02:33:47 (GMT)
committervincentdarley <vincentdarley>2003-11-15 02:33:47 (GMT)
commitb741ab86e1086cfbf3dcbd567e7f8e137462a69c (patch)
treeba9e32dbe2f68359525d8a6970e094993a73e5c4 /generic/tkText.c
parent39fcc54153d2d1c3f582c7801f4361e39b85cbff (diff)
downloadtk-b741ab86e1086cfbf3dcbd567e7f8e137462a69c.zip
tk-b741ab86e1086cfbf3dcbd567e7f8e137462a69c.tar.gz
tk-b741ab86e1086cfbf3dcbd567e7f8e137462a69c.tar.bz2
fix two more old text widget bugs
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index dc738a1..133d88d 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.c,v 1.43 2003/11/12 17:38:48 vincentdarley Exp $
+ * RCS: @(#) $Id: tkText.c,v 1.44 2003/11/15 02:33:50 vincentdarley Exp $
*/
#include "default.h"
@@ -451,7 +451,7 @@ Tk_TextObjCmd(clientData, interp, objc, objv)
textPtr->selBorderWidth = 0;
textPtr->selBorderWidthPtr = NULL;
textPtr->selFgColorPtr = NULL;
- textPtr->selTagPtr = TkTextCreateTag(textPtr, "sel");
+ textPtr->selTagPtr = TkTextCreateTag(textPtr, "sel", NULL);
textPtr->selTagPtr->reliefString =
(char *) ckalloc(sizeof(DEF_TEXT_SELECT_RELIEF));
strcpy(textPtr->selTagPtr->reliefString, DEF_TEXT_SELECT_RELIEF);
@@ -1778,7 +1778,7 @@ TextEventProc(clientData, eventPtr)
|| (textPtr->prevHeight != Tk_Height(textPtr->tkwin))) {
int mask = 0;
if (textPtr->prevWidth != Tk_Width(textPtr->tkwin)) {
- mask = 1;
+ mask = TK_TEXT_LINE_GEOMETRY;
}
TkTextRelayoutWindow(textPtr, mask);
textPtr->prevWidth = Tk_Width(textPtr->tkwin);
@@ -2690,8 +2690,9 @@ TextInsertCmd(textPtr, interp, objc, objv, indexPtr, noViewUpdate)
for (i = 0; i < numTags; i++) {
TkBTreeTag(&index1, &index2,
- TkTextCreateTag(textPtr,
- Tcl_GetString(tagNamePtrs[i])), 1);
+ TkTextCreateTag(textPtr,
+ Tcl_GetString(tagNamePtrs[i]), NULL),
+ 1);
}
index1 = index2;
}