sd/source/ui/func/fuformatpaintbrush.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit bea5341c22b40f690059933550e721cdcfb466aa
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Tue Mar 5 15:42:18 2024 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Wed Mar 6 21:21:39 2024 +0100

    Improve clone formatting
    
    Follow-up to 178d8a38e133aebd4cff1af2d2c49aec60468c92
    Makes sure that without selection at target position only
    character attributes are copied
    
    Change-Id: I677b1ef29855fb2cf4c42a7b821678ecdd37c7f6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164430
    Tested-by: Jenkins
    Tested-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx 
b/sd/source/ui/func/fuformatpaintbrush.cxx
index 9bbd30939d53..930e75233f32 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -40,17 +40,13 @@
 namespace
 {
 // Paragraph properties are pasted if the selection contains a whole paragraph
-// or there was no selection at all (i.e. just a left click)
 bool ShouldPasteParaFormatPerSelection(const OutlinerView* pOLV)
 {
     if(!pOLV)
         return true;
 
-    if(!pOLV->GetEditView().HasSelection())
-        return true;
-
     if(!pOLV->GetEditView().IsSelectionWithinSinglePara())
-        return true;
+        return false;
 
     return pOLV->GetEditView().IsSelectionFullPara();
 }

Reply via email to