editeng/source/uno/unotext.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 9ca22d44e5293f3335a2b475ccef157d31c60b94
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Fri Dec 15 10:10:12 2023 +0530
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Dec 19 17:58:48 2023 +0100

    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 <jenkinscollaboraoff...@gmail.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit db7faa06762ac902ff56ecbab3fff763951146e1)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160943
    Tested-by: Jenkins

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

Reply via email to