Skip to content
Permalink
Browse files

fix #188061: drift on spatium change

  • Loading branch information...
MarcSabatella committed Apr 14, 2017
1 parent de38cce commit 9ff0c872a4d70c797418091ab33e3d402aa0aab0
Showing with 6 additions and 3 deletions.
  1. +2 −2 libmscore/line.cpp
  2. +1 −0 libmscore/stem.cpp
  3. +1 −0 libmscore/textline.cpp
  4. +2 −1 libmscore/timesig.cpp
@@ -432,7 +432,7 @@ void LineSegment::editDrag(const EditData& ed)

void LineSegment::spatiumChanged(qreal ov, qreal nv)
{
Element::spatiumChanged(ov, nv);
SpannerSegment::spatiumChanged(ov, nv);
_userOff2 *= nv / ov;
}

@@ -442,7 +442,7 @@ void LineSegment::spatiumChanged(qreal ov, qreal nv)

void LineSegment::localSpatiumChanged(qreal ov, qreal nv)
{
Element::localSpatiumChanged(ov, nv);
SpannerSegment::localSpatiumChanged(ov, nv);
_userOff2 *= nv / ov;
}

@@ -128,6 +128,7 @@ void Stem::spatiumChanged(qreal oldValue, qreal newValue)
{
_userLen = (_userLen / oldValue) * newValue;
layout();
Element::spatiumChanged(oldValue, newValue);
}

//---------------------------------------------------------
@@ -640,6 +640,7 @@ void TextLineSegment::spatiumChanged(qreal ov, qreal nv)
textLine()->spatiumChanged(ov, nv);
if (_text)
_text->spatiumChanged(ov, nv);
LineSegment::spatiumChanged(ov, nv);
}

//---------------------------------------------------------
@@ -540,9 +540,10 @@ QVariant TimeSig::propertyDefault(P_ID id) const
// spatiumChanged
//---------------------------------------------------------

void TimeSig::spatiumChanged(qreal /*oldValue*/, qreal /*newValue*/)
void TimeSig::spatiumChanged(qreal oldValue, qreal newValue)
{
_needLayout = true;
Element::spatiumChanged(oldValue, newValue);
}

void TimeSig::localSpatiumChanged(qreal /*oldValue*/, qreal /*newValue*/)

0 comments on commit 9ff0c87

Please sign in to comment.
You can’t perform that action at this time.