diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-11-02 14:35:09 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-11-02 09:01:27 +0100 |
commit | 53d7225c3984cbc1a4cab255dbbcdfeeea50ae40 (patch) | |
tree | fee3bfb894bcb44d0738ec989de2f8b6f1642444 /svx/source/dialog | |
parent | 27d75c3986a257c121d6612413a4d1f59cd1425d (diff) |
TSCP: insert at cursor position when clicking an IP part
Change-Id: I0672f55c1d5ec14324b0d0589e2507c759b95911
Reviewed-on: https://gerrit.libreoffice.org/44186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/ClassificationDialog.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index 22fce44f1560..b82743a1675a 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -537,7 +537,8 @@ IMPL_LINK(ClassificationDialog, SelectIPPartNumbersHdl, ListBox&, rBox, void) if (nSelected >= 0) { OUString sString = maHelper.GetIntellectualPropertyPartNumbers()[nSelected]; - m_pIntellectualPropertyPartEdit->SetText(m_pIntellectualPropertyPartEdit->GetText() + sString); + m_pIntellectualPropertyPartEdit->ReplaceSelected(sString); + m_pIntellectualPropertyPartEdit->GrabFocus(); } } @@ -557,7 +558,8 @@ IMPL_LINK(ClassificationDialog, SelectIPPartHdl, ListBox&, rBox, void) if (nSelected >= 0) { const OUString sString = maHelper.GetIntellectualPropertyParts()[nSelected]; - m_pIntellectualPropertyPartEdit->SetText(m_pIntellectualPropertyPartEdit->GetText() + sString); + m_pIntellectualPropertyPartEdit->ReplaceSelected(sString); + m_pIntellectualPropertyPartEdit->GrabFocus(); } } |