diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-05-18 14:33:53 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-05-18 16:51:30 +0200 |
commit | 0a32630d11ebdb8b8218faa066c72582ef2f300d (patch) | |
tree | d4343e727fd9bb4f2fbf1610c95269a9e15dbe9a /sw/CppunitTest_sw_uibase_fldui.mk | |
parent | acf309d7e45aeae87d8dee0dd2af3c9a86b9f652 (diff) |
sw: fix not needed invalidation of title field on each keypress
Type a character, SwDocShell::DoFlushDocInfo() is called because the
number of characters changed, and that rapaints all title fields.
This happens as SwFormatField::UpdateTextNode() calls
SwTextField::ExpandTextField() with bForceNotify=true, because that was
needed for conditional text in commit
cd94a84b89c476760ad74bf088a5d6f8ba4ce209 (125044: - use field's content
cache on <SwTxtFld> construction only, 2014-06-13).
Fix the problem by not forcing notifications for title fields in
SwFormatField::UpdateTextNode(): SwTextField::ExpandTextField() will
send a notification if the expend result differs without forcing as
well.
Change-Id: I5e46ab6aef33ff5e348d40b8644bcc9cf353c326
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115743
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/CppunitTest_sw_uibase_fldui.mk')
0 files changed, 0 insertions, 0 deletions