diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-08-20 15:33:49 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-08-24 07:34:25 +0200 |
commit | 2c7bf3543ab798d1c117d9f3258467e4aef9a8db (patch) | |
tree | f9412c7b8451d5ca7ad981f14f3333eddb95e55a /sw/source | |
parent | 9ff0cd1f6b2200940ac51e580809e2a17c4b9550 (diff) |
Related tdf#100492 Detect click into empty field
Change-Id: Ic2937d619a8361b9d17b7dfa16698a5005f34ec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101076
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/crstrvl.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx index 5bea3f176289..11589b8e4181 100644 --- a/sw/source/core/crsr/crstrvl.cxx +++ b/sw/source/core/crsr/crstrvl.cxx @@ -927,7 +927,7 @@ bool SwCursorShell::CursorInsideInputField() const { for(SwPaM& rCursor : GetCursor()->GetRingContainer()) { - if (dynamic_cast<const SwTextInputField*>(GetTextFieldAtCursor(&rCursor, false))) + if (dynamic_cast<const SwTextInputField*>(GetTextFieldAtCursor(&rCursor, true))) return true; } return false; diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 6d6f241e7b2c..1dd213960885 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1778,7 +1778,7 @@ SwTextField* SwTextNode::GetFieldTextAttrAt( dynamic_cast<SwTextField*>( GetTextAttrAt( nIndex, RES_TXTATR_INPUTFIELD, - bIncludeInputFieldAtStart ? DEFAULT : PARENT )); + bIncludeInputFieldAtStart ? DEFAULT : EXPAND )); } return pTextField; |