Continuous view mode is not saved in master

• Aug 30, 2018 - 14:00
Reported version
3.0
Type
Functional
Severity
S3 - Major
Status
closed
Project
  1. Create any file
  2. Switch to continuous view
  3. Save file
  4. Close file
  5. Open file
    Result: the file is opened in page view. If this file is going to be shown in StartCenter's thumbnails, MuseScore will crash.

The reason is scorefile.cpp:118, when we save the file which is displayed in Continuous View mode, _layoutMode is PAGE:

      if (_layoutMode == LayoutMode::LINE)
            xml.tag("layoutMode", "line");

Comments

Status (old) patch (code needs review) fixed
Status fixed

Fixed in branch master, commit 13e13fa493

fix #275751: Continuous view mode is not saved in master

In MuseScore::saveAs there was a code which change layout mode to PageView. I deleted it to allow saving layout mode to mscz