Skip to content

Commit

Permalink
fix another xml regression (lines)
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jan 17, 2013
1 parent ec449f5 commit 58ee008
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions libmscore/cmd.cpp
Expand Up @@ -1580,8 +1580,10 @@ bool Score::processMidiInput()
_layoutAll = true;
endCmd();
//after relayout
foreach(MuseScoreView* v, viewer)
v->adjustCanvasPosition(n, false);
if (n) {
foreach(MuseScoreView* v, viewer)
v->adjustCanvasPosition(n, false);
}
return true;
}
return false;
Expand Down
2 changes: 2 additions & 0 deletions libmscore/line.cpp
Expand Up @@ -59,6 +59,8 @@ bool LineSegment::readProperties(XmlReader& e)
setUserOff(QPointF());
setReadPos(e.readPoint() * _spatium);
}
else
e.readNext();
}
else if (tag == "pos") {
QPointF rp = e.readPoint() * spatium();
Expand Down
2 changes: 0 additions & 2 deletions libmscore/scorefile.cpp
Expand Up @@ -574,15 +574,13 @@ Score::FileError Score::loadCompressedMsc(QString name, bool ignoreVersionError)
while (e.readNextStartElement()) {
const QStringRef& tag(e.name());

printf("read container <%s>\n", tag.toUtf8().data());
if (tag == "rootfile") {
rootfile = e.attribute("full-path");
e.skipCurrentElement();
}
else if (tag == "file") {
QString image(e.readElementText());
QByteArray dbuf = uz.fileData(image);
printf("read file <%s> %d bytes\n", qPrintable(image), dbuf.size());
imageStore.add(image, dbuf);
}
}
Expand Down
2 changes: 1 addition & 1 deletion libmscore/xml.cpp
Expand Up @@ -634,7 +634,7 @@ QString Xml::htmlToString(XmlReader& e)
QString s;
if (e.readNextStartElement()) {
htmlToString(e, 0, &s);
printf("====HTML<%s>====\n", qPrintable(s));
// printf("====HTML<%s>====\n", qPrintable(s));
e.skipCurrentElement();
}
return s;
Expand Down

0 comments on commit 58ee008

Please sign in to comment.