Skip to content

Commit

Permalink
Merge pull request #5970 from bsdz/303902-svg_trim_blank
Browse files Browse the repository at this point in the history
Fix #303902: Export to SVG with trim via command line results in blank image
  • Loading branch information
anatoly-os committed Apr 28, 2020
2 parents e29406d + 4812418 commit ee1b1bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mscore/file.cpp
Expand Up @@ -3018,8 +3018,6 @@ bool MuseScore::saveSvg(Score* score, QIODevice* device, int pageNumber, bool dr
if (trimMargin >= 0 && score->npages() == 1)
p.translate(-r.topLeft());
MScore::pixelRatio = DPI / printer.logicalDpiX();
if (trimMargin >= 0)
p.translate(-r.topLeft());

if (drawPageBackground)
p.fillRect(r, Qt::white);
Expand Down

0 comments on commit ee1b1bb

Please sign in to comment.