Skip to content

Commit

Permalink
fix vtests after 1f0c7ee
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstrema authored and vpereverzev committed Dec 9, 2020
1 parent a2f4f1b commit 6c0ea0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,7 @@ bool MuseScore::savePng(Score* score, const QString& name, SaveReplacePolicy* re
QString fileName(name);
if (fileName.endsWith(".png"))
fileName = fileName.left(fileName.size() - 4);
fileName += QString(" - %1.png").arg(pageNumber+1, padding, 10, QLatin1Char('0'));
fileName += QString("-%1.png").arg(pageNumber+1, padding, 10, QLatin1Char('0'));
if (!converterMode && QFileInfo(fileName).exists()) {
switch (_replacePolicy) {
case SaveReplacePolicy::NO_CHOICE:
Expand Down
4 changes: 2 additions & 2 deletions vtest/gen
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">" >> $F
echo " </head>" >> $F
echo " <body>" >> $F
echo " <div id=\"topbar\">" >> $F
echo " <span>Current</span>" >> $F
echo " <span>Reference</span>" >> $F
echo " <span>After PR</span>" >> $F
echo " <span>Before PR</span>" >> $F
echo " <span>Comparison</span>" >> $F
echo " </div>" >> $F
echo " <div id=\"topmargin\"></div>" >> $F
Expand Down
4 changes: 2 additions & 2 deletions vtest/gen.bat
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ echo ^<link rel="stylesheet" type="text/css" href="style.css"^> >> %F%
echo ^<head^> >> %F%
echo ^<body^> >> %F%
echo ^<div id="topbar"^> >> %F%
echo ^<span^>Current^</span^> >> %F%
echo ^<span^>Reference^</span^> >> %F%
echo ^<span^>After PR^</span^> >> %F%
echo ^<span^>Before PR^</span^> >> %F%
echo ^<span^>Comparison^</span^> >> %F%
echo ^</div^> >> %F%
echo ^<div id="topmargin"^>^</div^> >> %F%
Expand Down
6 changes: 3 additions & 3 deletions vtest/gen_compare
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">" >> $F
echo " </head>" >> $F
echo " <body>" >> $F
echo " <div id=\"topbar\">" >> $F
echo " <span>Current</span>" >> $F
echo " <span>Reference</span>" >> $F
echo " <span>After PR</span>" >> $F
echo " <span>Before PR</span>" >> $F
echo " <span>Comparison</span>" >> $F
echo " </div>" >> $F
echo " <div id=\"topmargin\"></div>" >> $F
Expand Down Expand Up @@ -80,4 +80,4 @@ if [ "$VTEST_DIFF_FOUND" = false ]; then
rm -rf ./compare
fi

echo "VTEST_DIFF_FOUND=$VTEST_DIFF_FOUND" >> $GITHUB_ENV
echo "VTEST_DIFF_FOUND=$VTEST_DIFF_FOUND" >> $GITHUB_ENV

0 comments on commit 6c0ea0d

Please sign in to comment.