summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-23 13:54:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-23 13:54:02 (GMT)
commit4ece42ac76dc352bf0fddf6d8edee38be7cc0014 (patch)
tree0028ca75dcb8547031bc91b8a1cedad97a6602ff /generic/tkText.c
parente64d38045b3d09b51e7f212794155a7df8b0bc1f (diff)
parent2c1df2e9f4f50fb3d70656c278d42ca0da4401d4 (diff)
downloadtk-4ece42ac76dc352bf0fddf6d8edee38be7cc0014.zip
tk-4ece42ac76dc352bf0fddf6d8edee38be7cc0014.tar.gz
tk-4ece42ac76dc352bf0fddf6d8edee38be7cc0014.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 7616d4d..ddb24de 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -627,9 +627,10 @@ CreateWidget(
*/
textPtr->selTagPtr = TkTextCreateTag(textPtr, "sel", NULL);
+ textPtr->selTagPtr->reliefString = (char *)
+ ckalloc(sizeof(DEF_TEXT_SELECT_RELIEF));
+ strcpy(textPtr->selTagPtr->reliefString, DEF_TEXT_SELECT_RELIEF);
Tk_GetRelief(interp, DEF_TEXT_SELECT_RELIEF, &textPtr->selTagPtr->relief);
- textPtr->selTagPtr->reliefObj = Tcl_NewStringObj(DEF_TEXT_SELECT_RELIEF, -1);
- Tcl_IncrRefCount(textPtr->selTagPtr->reliefObj);
textPtr->currentMarkPtr = TkTextSetMark(textPtr, "current", &startIndex);
textPtr->insertMarkPtr = TkTextSetMark(textPtr, "insert", &startIndex);