svx/source/svdraw/svdedxv.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 11836f79a57889c4e7d222f4e96acd95ecd4d38a
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Wed Jan 15 13:04:00 2025 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Mar 6 21:54:37 2025 +0100

    tdf#165596 Fix format paintbrush in Impress with lists
    
    Follow-up to dbb05dc818afb08b3e05ac62bd92389a5cf90fa7 to copy
    paragraph attributes from the source also if no selection is
    set.
    
    Change-Id: I05bea3fcaf8cf7a9c7ed341d2a7171d3f8a28131
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180277
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    Tested-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    (cherry picked from commit 0a31206b38f4a116ee1642ca9d29e6bd33391785)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182589
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index cd7cb89b2e05..5598e4ce4279 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -2923,7 +2923,9 @@ sal_Int32 
SdrObjEditView::TakeFormatPaintBrush(std::shared_ptr<SfxItemSet>& rFor
         return nDepth;
 
     OutlinerView* pOLV = GetTextEditOutlinerView();
-    bool isParaSelection = pOLV ? pOLV->GetEditView().IsSelectionFullPara() : 
false;
+    bool isParaSelection
+        = pOLV ? !pOLV->GetEditView().HasSelection() || 
pOLV->GetEditView().IsSelectionFullPara()
+               : false;
     rFormatSet = std::make_shared<SfxItemSet>(GetModel().GetItemPool(),
                                               GetFormatRangeImpl(pOLV != 
nullptr, isParaSelection));
     if (pOLV)

Reply via email to