Kaydet (Commit) c5d355e9 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#103026 invalid dash causes CAIRO_STATUS_INVALID_DASH state

Change-Id: I072635ff7c67022ebfd5bdb475e390f3aab7a51c
üst e713ec44
...@@ -1226,7 +1226,10 @@ namespace cairocanvas ...@@ -1226,7 +1226,10 @@ namespace cairocanvas
break; break;
} }
if (strokeAttributes.DashArray.getLength() > 0) //tdf#103026 If the w scaling is 0, then all dashes become zero so
//cairo will set the cairo_t status to CAIRO_STATUS_INVALID_DASH
//and no further drawing will occur
if (strokeAttributes.DashArray.getLength() > 0 && w > 0.0)
{ {
auto aDashArray(comphelper::sequenceToContainer<std::vector<double>>(strokeAttributes.DashArray)); auto aDashArray(comphelper::sequenceToContainer<std::vector<double>>(strokeAttributes.DashArray));
for (auto& rDash : aDashArray) for (auto& rDash : aDashArray)
......
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