Skip to content

Commit

Permalink
fix #33011
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Oct 10, 2014
1 parent e853dbf commit 54f3323
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mscore/file.cpp
Expand Up @@ -1458,6 +1458,13 @@ void MuseScore::printFile()
QPrintDialog pd(&printerDev, 0);
if (!pd.exec())
return;

LayoutMode layoutMode = cs->layoutMode();
if (layoutMode != LayoutMode::PAGE) {
cs->setLayoutMode(LayoutMode::PAGE);
cs->doLayout();
}

QPainter p(&printerDev);
p.setRenderHint(QPainter::Antialiasing, true);
p.setRenderHint(QPainter::TextAntialiasing, true);
Expand Down Expand Up @@ -1488,6 +1495,10 @@ void MuseScore::printFile()
}
}
p.end();
if (layoutMode != cs->layoutMode()) {
cs->setLayoutMode(layoutMode);
cs->doLayout();
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit 54f3323

Please sign in to comment.