Skip to content

Commit

Permalink
Merge pull request #3392 from Jojo-Schmitz/fotomode-2.2
Browse files Browse the repository at this point in the history
Fix #268465: image capture: no file saved when selected rectangle is 'negative'
  • Loading branch information
lasconic committed Jan 15, 2018
2 parents 6a81f7e + 23ef985 commit 7b34524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mscore/fotomode.cpp
Expand Up @@ -630,9 +630,9 @@ void ScoreView::fotoContextPopup(QContextMenuEvent* ev)
return;
QString cmd(a->data().toString());
if (cmd == "print")
saveFotoAs(true, _foto->rect());
saveFotoAs(true, _foto->rect().normalized());
else if (cmd == "screenshot")
saveFotoAs(false, _foto->rect());
saveFotoAs(false, _foto->rect().normalized());
else if (cmd == "copy")
;
else if (cmd == "set-res") {
Expand Down Expand Up @@ -688,7 +688,7 @@ void ScoreView::fotoModeCopy()
double convDpi = preferences.pngResolution;
double mag = convDpi / DPI;

QRectF r(_foto->rect());
QRectF r(_foto->rect().normalized());

int w = lrint(r.width() * mag);
int h = lrint(r.height() * mag);
Expand Down

0 comments on commit 7b34524

Please sign in to comment.