summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-06-08 08:24:02 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-06-09 12:00:53 +0200
commitd45e98b08cd38aedf4600d20ab14265ad932b190 (patch)
tree886baf668c10b0e01f6e5012c2d6aa4f69abe973 /solenv
parentecdc56a92bff0b53b987d2dc17b561e9e4180a03 (diff)
sw content controls: update the cursor at SwContentControlDlg end
Once a dropdown content control is inserted, the properties dialog can modify list items. The desktop case updates these list items when SfxViewFrame::Enable() calls SwView::ShowCursor(), but for some reason the same implicit update doesn't happen in the LOK case. This means adding new list items requires leaving the content control & entering again, then the dropdown shows the new list items, which is confusing. And also the update (when it works) is implicit, so it can break without us noticing. Fix the problem by explicitly updating the cursor before ending the properties dialog: this will scroll to the cursor position, but that's not a problem since the properties dialog is always editing the content control at the current position anyway. Show / hide is used because that's an easy way to call SwCursorShell::UpdateCursor(), which is private to us. (cherry picked from commit e9a7ed53260feef439b7b046286352b23a69668b) Change-Id: I43aca24c2961ef6c4cc14f895edd6f3f22980148 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135528 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'solenv')
0 files changed, 0 insertions, 0 deletions