Diagonal line: End hook can disappear or elongate when Begin hook is set to "None"

• Sep 9, 2019 - 18:22
Reported version
3.2
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.3.0.8267, revision: e36df56

  1. Open the attached file and select the second line below the staff.
  2. Set to "Allow diagonal," and Begin hook to "None."
  3. Now drag the end handle vertically downwards.
    Result: The end hook increases in length the more you drag the line.
  4. Reset the file and select the line again. Set to "Allow diagonal," and Begin hook to 90° (say)
  5. Drag end handle vertically downwards, then set Begin hook to "None."
    Result: The end hook disappears.
  6. Now drag the end handle down again
    Result: The end hook grows longer again.

See also: #284461: Line Issue - Hooks on diagonal lines are skewed.

Attachment Size
line_issue.mscz 7.53 KB

Comments

Status active PR created

See PR https://github.com/musescore/MuseScore/pull/5917
Apparently, the reason was a typo (found also by PVS-Studio analysis) and a wrong "npoints" number (in the code, for this case npoints represents the number of lines being drawn instead of the number of points, so just one line must be drawn for the None-None case).

Fix version
3.5.0