Fix #293998 : Fig. Bass continuation lines disappearing

The issue was a consequence of the switch to fractions in 3.1: the ticks of a Fig. Bass element were written in the file as fraction but read back as an `int`, which in most cases resulted in a 0-duration element.
This commit is contained in:
Maurizio M. Gavioli 2019-11-02 17:39:07 +01:00
parent 438ab6bf88
commit c81fa7300a

View file

@ -1080,7 +1080,7 @@ void FiguredBass::read(XmlReader& e)
while (e.readNextStartElement()) {
const QStringRef& tag(e.name());
if (tag == "ticks")
setTicks(Fraction::fromTicks(e.readInt()));
setTicks(e.readFraction());
else if (tag == "onNote")
setOnNote(e.readInt() != 0l);
else if (tag == "FiguredBassItem") {