diff options
author | Justin Luth <justin.luth@collabora.com> | 2022-10-15 18:15:47 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-10-18 00:33:04 +0200 |
commit | 7d260761702a5a172f3554bbf44d0e810c441a51 (patch) | |
tree | 238b8563b434bee9c75094f3f4ffb0084dddab12 /sw | |
parent | 7b63242ea72885d05faa5f0879395fa93a3446d1 (diff) |
related tdf#151548 sw: use start of selection for GetCurrentFieldmark
When walking through a form, the current formfield is highlighted,
and pressing space should toggle a checkmarkField. Well, GetPoint
was pointing at the end of the selection, and so we were getting
a "sw/source/uibase/docvw/edtwin.cxx:2499: Where is my FieldMark??".
My attempt at a unit test caused random crashing (I assume it was
the protection-editing dialog box) and I never did succeed
in getting the checkbox to report an unchecked status anyway.
Change-Id: I0f28fb117a84cb5e56463a65d5bb72bbac174865
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141424
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/crbm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/crbm.cxx b/sw/source/core/crsr/crbm.cxx index 113fd96e4e5a..4e0b808c7fba 100644 --- a/sw/source/core/crsr/crbm.cxx +++ b/sw/source/core/crsr/crbm.cxx @@ -286,7 +286,7 @@ bool SwCursorShell::IsFormProtected() ::sw::mark::IFieldmark* SwCursorShell::GetCurrentFieldmark() { // TODO: Refactor - SwPosition pos(*GetCursor()->GetPoint()); + SwPosition pos(*GetCursor()->Start()); return getIDocumentMarkAccess()->getFieldmarkFor(pos); } |