Merge pull request #18041 from RomanPudashkin/fix_draw_lines_when_exporting_svg_4.0.2
fix_draw_lines_when_exporting_svg_4.0.2
This commit is contained in:
commit
08c1e1c911
|
@ -1259,6 +1259,10 @@ void SvgPaintEngine::drawPolygon(const QPointF* points, int pointCount,
|
|||
}
|
||||
|
||||
if (mode == PolylineMode) {
|
||||
// fixes draw polyline
|
||||
painter()->setBrush(Qt::NoBrush);
|
||||
updateState(*this->state);
|
||||
|
||||
stream() << SVG_POLYLINE << stateString
|
||||
<< SVG_POINTS;
|
||||
for (int i = 0; i < pointCount; ++i) {
|
||||
|
|
|
@ -49,6 +49,8 @@ std::vector<INotationWriter::UnitType> SvgWriter::supportedUnitTypes() const
|
|||
|
||||
mu::Ret SvgWriter::write(INotationPtr notation, QIODevice& destinationDevice, const Options& options)
|
||||
{
|
||||
TRACEFUNC;
|
||||
|
||||
IF_ASSERT_FAILED(notation) {
|
||||
return make_ret(Ret::Code::UnknownError);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue