Update to tk 8.5.19
This commit is contained in:
@@ -44,11 +44,11 @@ static const Tk_OptionSpec tagOptionSpecs[] = {
|
||||
{TK_OPTION_BITMAP, "-bgstipple", NULL, NULL,
|
||||
NULL, -1, Tk_Offset(TkTextTag, bgStipple), TK_OPTION_NULL_OK, 0, 0},
|
||||
{TK_OPTION_PIXELS, "-borderwidth", NULL, NULL,
|
||||
"0", Tk_Offset(TkTextTag, borderWidthPtr), Tk_Offset(TkTextTag, borderWidth),
|
||||
TK_OPTION_DONT_SET_DEFAULT|TK_OPTION_NULL_OK, 0, 0},
|
||||
NULL, Tk_Offset(TkTextTag, borderWidthPtr), Tk_Offset(TkTextTag, borderWidth),
|
||||
TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT, 0, 0},
|
||||
{TK_OPTION_STRING, "-elide", NULL, NULL,
|
||||
"0", -1, Tk_Offset(TkTextTag, elideString),
|
||||
TK_OPTION_DONT_SET_DEFAULT|TK_OPTION_NULL_OK, 0, 0},
|
||||
NULL, -1, Tk_Offset(TkTextTag, elideString),
|
||||
TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT, 0, 0},
|
||||
{TK_OPTION_BITMAP, "-fgstipple", NULL, NULL,
|
||||
NULL, -1, Tk_Offset(TkTextTag, fgStipple), TK_OPTION_NULL_OK, 0, 0},
|
||||
{TK_OPTION_FONT, "-font", NULL, NULL,
|
||||
@@ -169,6 +169,14 @@ TkTextTagCmd(
|
||||
return TCL_ERROR;
|
||||
}
|
||||
tagPtr = TkTextCreateTag(textPtr, Tcl_GetString(objv[3]), NULL);
|
||||
if (tagPtr->elide) {
|
||||
/*
|
||||
* Indices are potentially obsolete after adding or removing
|
||||
* elided character ranges, especially indices having "display"
|
||||
* or "any" submodifier, therefore increase the epoch.
|
||||
*/
|
||||
textPtr->sharedTextPtr->stateEpoch++;
|
||||
}
|
||||
for (i = 4; i < objc; i += 2) {
|
||||
if (TkTextGetObjIndex(interp, textPtr, objv[i],
|
||||
&index1) != TCL_OK) {
|
||||
|
||||
Reference in New Issue
Block a user