Kaydet (Commit) 983c2740 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Fix fdo#33591 - edge-case trans gradients came out empty

Gradients with start==end got us zero steps, thus no fill at all.
Funnily this was wrong since pre-3.0 or somesuch.
üst 25de2a56
......@@ -72,6 +72,8 @@ namespace drawinglayer
nSteps = nMaxSteps;
}
nSteps = std::max(sal_uInt32(1), nSteps);
switch(getFillGradient().getStyle())
{
case attribute::GRADIENTSTYLE_LINEAR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment