tdf#129675: This should be EmfPlusPenDataDashedLine

else if (pen->penDataFlags & 0x00000100)
was changed to
else if (pen->penDataFlags & EmfPlusPenDataMiterLimit)
where EmfPlusPenDataMiterLimit = 0x00000010

See https://bugs.documentfoundation.org/show_bug.cgi?id=129675#c20

Regression from 1bd303a4c38a1bc04c3cf7bf0e7a44ac0fdb209d

Change-Id: I01ba4272aaa665a2fb0ab7ce9c05bb882db77d3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88878
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Xisco Fauli 2020-02-17 18:06:20 +01:00 committed by Noel Grandin
parent 72a910dfc8
commit 2cdab992c6

View File

@ -544,7 +544,7 @@ namespace emfplushelper
break;
}
}
else if (pen->penDataFlags & EmfPlusPenDataMiterLimit) // pen has a custom dash line
else if (pen->penDataFlags & EmfPlusPenDataDashedLine) // pen has a custom dash line
{
// StrokeAttribute needs a double vector while the pen provides a float vector
std::vector<double> aPattern(pen->dashPattern.size());