sd/source/ui/view/drviews2.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit c0623158f010e08e0bfadaffb988eac14e1ff34e
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Thu Nov 7 22:57:33 2024 +0530
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Nov 8 12:02:59 2024 +0100

    tdf#163805: set fill style to solid on fill color selection
    
    problem:
    The issue here is that the table does not have a fill style set,
    but using the fill tool from the menubar does not give any error
    or warning, either, which confuses the user.
    
    Change-Id: Ib7d6ecdbb315b6eb2eca21423fba28d3cb086450
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176245
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index d149c9633d7f..101e5d5c448d 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -87,6 +87,7 @@
 #include <svx/chrtitem.hxx>
 #include <svx/xlnclit.hxx>
 #include <svx/xflgrit.hxx>
+#include <svx/xfillit0.hxx>
 
 #include <comphelper/diagnose_ex.hxx>
 #include <tools/UnitConversion.hxx>
@@ -660,6 +661,11 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
             if( rReq.GetArgs() )
             {
                 std::unique_ptr<SfxItemSet> pNewArgs = rReq.GetArgs()->Clone();
+                if (nSId == SID_ATTR_FILL_COLOR)
+                {
+                    const XFillStyleItem aXFillStyleItem;
+                    pNewArgs->Put(aXFillStyleItem);
+                }
                 lcl_convertStringArguments(pNewArgs);
                 mpDrawView->SetAttributes(*pNewArgs);
                 rReq.Done();

Reply via email to