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

New commits:
commit db7faa06762ac902ff56ecbab3fff763951146e1
Author:     Pranam Lashkari <[email protected]>
AuthorDate: Fri Dec 15 10:10:12 2023 +0530
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Dec 19 10:30:24 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 <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index fdc9ca85fd0e..0deca73d6978 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -2145,6 +2145,7 @@ void SvxUnoTextBase::copyText(
         {
             pTextForwarder->CopyText( *pSourceTextForwarder );
             pEditSource->UpdateData();
+            SetSelection(pSource->GetSelection());
         }
     }
     else

Reply via email to