GRAPHICS: MACGUI: remove the selection after we set maxWidth in mactext

This commit is contained in:
ysj1173886760 2021-06-07 18:12:12 +08:00 committed by Eugene Sandulenko
parent 4c3630f648
commit 34972626d4

View file

@ -299,6 +299,9 @@ void MacText::setMaxWidth(int maxWidth) {
}
_cursorCol = ppos;
// after we set maxWidth, we reset the selection
_selectedText.endY = -1;
recalcDims();
updateCursorPos();