Merge pull request #3314 from MarkusLutz63/correct_vPosBourdons

#259631: Correct vertical position of bass bourdons
This commit is contained in:
Nicolas Froment 2017-11-16 17:31:10 +01:00 committed by GitHub
commit 9eb53975ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -842,7 +842,7 @@ qreal StaffType::physStringToYOffset(int strg) const
if (yOffset >= _lines) { // if physical string 'below' tab lines,
yOffset = _lines; // reduce to first string 'below' tab body
if (!_useNumbers) // with letters, add some space for the slashes ascender
yOffset = _lines + STAFFTYPE_TAB_BASSSLASH_YOFFSET;
yOffset = _onLines ? _lines : _lines + STAFFTYPE_TAB_BASSSLASH_YOFFSET;
}
// if TAB upside down, flip around top line
yOffset = _upsideDown ? (qreal)(_lines - 1) - yOffset : yOffset;