Skip to content

Commit

Permalink
Fix [d5a3b86f3a]: tablelist widget with header items and title column…
Browse files Browse the repository at this point in the history
…s crashes when run with revised_text.
  • Loading branch information
fvogelnew1 committed Nov 17, 2024
1 parent 5aee414 commit 13b472d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generic/tkTextDisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7172,6 +7172,10 @@ TkTextUpdateLineMetrics(
assert(endLine <= totalLines);
assert(textPtr->sharedTextPtr->allowUpdateLineMetrics);

if (dInfoPtr->flags & DINFO_OUT_OF_DATE) {
UpdateDisplayInfo(textPtr);
}

dInfoPtr->insideLineMetricUpdate = 1;

if ((range = TkRangeListFindNearest(dInfoPtr->lineMetricUpdateRanges, lineNum))) {
Expand Down

0 comments on commit 13b472d

Please sign in to comment.