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:
RomanPudashkin 2023-06-19 19:03:05 +03:00 committed by GitHub
commit 08c1e1c911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -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);
}