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

ofz#947 line dashing is very problematic memory and size wise

Change-Id: I29ed7cd774d3ede077edfe2893c7a9e72b83abad
Reviewed-on: https://gerrit.libreoffice.org/35748Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 53e83bca
......@@ -345,10 +345,16 @@ namespace drawinglayer
bUseDecomposition = true;
}
if(bUseDecomposition)
if (bUseDecomposition)
{
// get correct range by using the decomposition fallback, reasons see above cases
// ofz#947 to optimize calculating the range, turn any slow dashes into a solid line
// when just calculating bounds
attribute::StrokeAttribute aOrigStrokeAttribute = maStrokeAttribute;
const_cast<PolygonStrokePrimitive2D*>(this)->maStrokeAttribute = attribute::StrokeAttribute();
aRetval = BufferedDecompositionPrimitive2D::getB2DRange(rViewInformation);
const_cast<PolygonStrokePrimitive2D*>(this)->maStrokeAttribute = aOrigStrokeAttribute;
}
else
{
......
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