[trunk r.3708] Text styles backward compatibility issue (w/ patch)

• Nov 18, 2010 - 19:51
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Step: Open any score created with ver. 0.9.6.3 (or earlier)

Result: Title, composer, etc. (in general text styles with non-zero relX and/or relY) texts are misplaced.

As elsewhere discussed, this depends on a change in the style internal structure.

Expected result: text styles are converted from the older definitions to the new structure (at least, common and 'basic' styles, like title and composer)

Patch: the attached patch restores some backward compatibility, at least in the simplest (and commonest) cases, by setting style _reloff x and y components to 0 when reading older files (function bool Score::read(QDomElement dScore) in file file.cpp).

Thanks,

M.

Attachment Size
file_cpp_r3708.diff_.txt 663 bytes

Comments