Skip to content

Commit

Permalink
fix invalid iterator exception
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 2, 2024
1 parent 4f3edd4 commit 23972ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ void TextEditorView::invalidateLines (size_t pos, int32_t numChars) const
++nextLine;
nextLine->range.length += line->range.length - numDel;
nextLine->range.start = line->range.start;
nextLine = md.model.lines.erase (line);
nextLine = line = md.model.lines.erase (line);
numLinesChanged = true;
invalidateSingleLine (nextLine, 0);
auto prevLine = nextLine;
Expand Down

0 comments on commit 23972ca

Please sign in to comment.