sd/source/ui/func/fuformatpaintbrush.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit bea5341c22b40f690059933550e721cdcfb466aa Author: Oliver Specht <[email protected]> AuthorDate: Tue Mar 5 15:42:18 2024 +0100 Commit: Thorsten Behrens <[email protected]> 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 <[email protected]> Reviewed-by: Thorsten Behrens <[email protected]> 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(); }
