Fix initial InputField text setting.
After stargin to merge block format to current cursor the _lastTextWithTags was cleared before being set from the same reference.
This commit is contained in:
parent
19193b3c7b
commit
3aeeec3dfc
1 changed files with 2 additions and 2 deletions
|
|
@ -1341,8 +1341,8 @@ InputField::InputField(
|
|||
setCursor(style::cur_text);
|
||||
heightAutoupdated();
|
||||
|
||||
if (!_lastTextWithTags.text.isEmpty()) {
|
||||
setTextWithTags(_lastTextWithTags, HistoryAction::Clear);
|
||||
if (!value.text.isEmpty()) {
|
||||
setTextWithTags(value, HistoryAction::Clear);
|
||||
}
|
||||
|
||||
startBorderAnimation();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue