writerperfect/source/filter/OdgGenerator.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 0f829ec191c944a12c63646dfc3b78f0def26c91 Author: Fridrich Å trba <[email protected]> Date: Mon Sep 26 11:46:08 2011 +0200 If gradient type is not specified, assume linear diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 9b12cbc..47b6c89 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -1020,6 +1020,11 @@ void OdgGeneratorPrivate::_writeGraphicsStyle() pDrawGradientElement->addAttribute("draw:style", mxStyle["draw:style"]->getStr()); pDrawOpacityElement->addAttribute("draw:style", mxStyle["draw:style"]->getStr()); } + else + { + pDrawGradientElement->addAttribute("draw:style", "linear"); + pDrawOpacityElement->addAttribute("draw:style", "linear"); + } WPXString sValue; sValue.sprintf("Gradient_%i", miGradientIndex); pDrawGradientElement->addAttribute("draw:name", sValue);
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
