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

New commits:
commit df8941ee5bb375de504f106370f28d7f3c12ab70
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Thu Nov 7 22:57:33 2024 +0530
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Nov 14 07:17:08 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>
    (cherry picked from commit c0623158f010e08e0bfadaffb988eac14e1ff34e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176238
    Reviewed-by: Pranam Lashkari <lpra...@collabora.com>
    Tested-by: Jenkins

diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 9cf299d69b9f..4faf8b632be7 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>
@@ -670,6 +671,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