diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2023-12-15 10:10:12 +0530 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-19 17:58:48 +0100 |
commit | 9ca22d44e5293f3335a2b475ccef157d31c60b94 (patch) | |
tree | 8f6f5da71f193856cea7b235eeb0759f52470196 /editeng | |
parent | 77c921302b7ef869aed28fcd0187c80095d6a766 (diff) |
Keep selection as after copying the text
This also aligns code with 'else' branch behaviour
problem:
in online when coping a slide with comment,
comment text was never copied in online,
it required document to reload to show it correctly
Change-Id: I6d444c10808ef23f282370b4b305c41eb5043b76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160812
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit db7faa06762ac902ff56ecbab3fff763951146e1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160943
Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unotext.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index f74d7f67c328..a10fd66fdf9a 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -2217,6 +2217,7 @@ void SvxUnoTextBase::copyText( { pTextForwarder->CopyText( *pSourceTextForwarder ); pEditSource->UpdateData(); + SetSelection(pSource->GetSelection()); } } else |