Fix Beware's notecard embed crash by immediately reflowing upon remove

We'll want to revisit this later and more optimally fix it.
This commit is contained in:
Lirusaito
2019-04-28 06:22:42 -04:00
parent c6b17c9005
commit b34021abd5

View File

@@ -4739,7 +4739,11 @@ S32 LLTextEditor::removeStringNoUndo(S32 pos, S32 length)
createDefaultSegment();
mTextIsUpToDate = FALSE;
needsReflow(/*pos*/);
/*needsReflow(pos);*/
// Singu Note: This kinda sucks for performance of delete, fix this later (with LLTextBase merge?)
updateLineStartList();
mReflowNeeded = false;
return -length; // This will be wrong if someone calls removeStringNoUndo with an excessive length
}