summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2024-11-07 22:57:33 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-14 07:17:08 +0100
commitdf8941ee5bb375de504f106370f28d7f3c12ab70 (patch)
treed41db65a4d3e234fd34cc194e08a0f25d5f8a193 /sd/source
parent221194dda8a6543f835c057bf609b0e3b3820432 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit c0623158f010e08e0bfadaffb988eac14e1ff34e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176238 Reviewed-by: Pranam Lashkari <lpranam@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/drviews2.cxx6
1 files changed, 6 insertions, 0 deletions
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();