diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-24 08:17:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-24 16:04:37 +0200 |
commit | e71ece6a6f5a817120a3866896828e4158fbde79 (patch) | |
tree | 10312a8b6837eed4f41395ea2d8fa24c40768391 /sw | |
parent | 1cf7fcda337ad7e9e63234b750b7ab227f5ee6f3 (diff) |
document that nEndPos of -1 is all text
Change-Id: I4646e1ef09db3a637248cff53cbbafb214219cf8
Reviewed-on: https://gerrit.libreoffice.org/59542
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/inpdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/inpdlg.cxx b/sw/source/ui/fldui/inpdlg.cxx index f0bbfbd22bda..a9cad5d770d2 100644 --- a/sw/source/ui/fldui/inpdlg.cxx +++ b/sw/source/ui/fldui/inpdlg.cxx @@ -106,7 +106,7 @@ SwFieldInputDlg::SwFieldInputDlg(weld::Window *pParent, SwWrtShell &rS, // preselect all text to allow quickly changing the content if (bEnable) - m_xEditED->select_region(0, m_xEditED->get_text().getLength()); + m_xEditED->select_region(0, -1); } SwFieldInputDlg::~SwFieldInputDlg() |