summaryrefslogtreecommitdiff
path: root/svx/source/dialog/tpshadow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/tpshadow.cxx')
-rw-r--r--svx/source/dialog/tpshadow.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/dialog/tpshadow.cxx b/svx/source/dialog/tpshadow.cxx
index e6be1e8dd407..4515f1f39a31 100644
--- a/svx/source/dialog/tpshadow.cxx
+++ b/svx/source/dialog/tpshadow.cxx
@@ -178,6 +178,16 @@ SvxShadowTabPage::SvxShadowTabPage( Window* pParent, const SfxItemSet& rInAttrs
{
rXFSet.Put( XFillColorItem( String(), COL_LIGHTRED ) );
}
+
+ if(XFILL_NONE == eXFS)
+ {
+ // #i96350#
+ // fallback to solid fillmode when no fill mode is provided to have
+ // a reasonable shadow preview. The used color will be a set one or
+ // the default (currently blue8)
+ eXFS = XFILL_SOLID;
+ }
+
rXFSet.Put( XFillStyleItem( eXFS ) );
aCtlXRectPreview.SetRectangleAttributes(aXFillAttr.GetItemSet());
//aCtlXRectPreview.SetFillAttr( aXFillAttr );