Another SimpleVector nuked.

This commit is contained in:
2025-08-11 01:54:39 -04:00
parent ffca1fe172
commit 214a4a62fe
3 changed files with 12 additions and 15 deletions

View File

@ -1440,8 +1440,8 @@ int Textblock::hyphenateWord (int wordIndex, int *addIndex1)
moveWordIndices (wordIndex, numBreaks, addIndex1);
// Adjust anchor indexes.
for (int i = 0; i < anchors->size (); i++) {
Anchor *anchor = anchors->getRef (i);
for (int i = 0; i < anchors.size (); i++) {
Anchor *anchor = &anchors.at (i);
if (anchor->wordIndex > wordIndex)
anchor->wordIndex += numBreaks;
}