Skip to content

Commit

Permalink
fix #280234: fix progress bar values for audio export
Browse files Browse the repository at this point in the history
Does not apply to mp3 export as it is handled separately.
  • Loading branch information
dmitrio95 committed Dec 28, 2018
1 parent 7476fbb commit 6f54ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/exportaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bool MuseScore::saveAudio(Score* score, QIODevice *device, std::function<bool(fl
playTime = endTime;
if (updateProgress) {
// normalize to [0, 1] range
if (!updateProgress((pass * et + playTime) / passes / et)) {
if (!updateProgress(float(pass * et + playTime) / passes / et)) {
cancelled = true;
break;
}
Expand Down

0 comments on commit 6f54ea2

Please sign in to comment.