Skip to content

Commit

Permalink
fix regression with dots
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed May 29, 2013
1 parent bf194db commit f48ed4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmscore/articulation.h
Expand Up @@ -71,7 +71,7 @@ class Articulation : public Element {
virtual Articulation* clone() const { return new Articulation(*this); }
virtual ElementType type() const { return ARTICULATION; }

virtual qreal mag() const { return parent()->mag(); }
virtual qreal mag() const { return parent() ? parent()->mag(): 1.0; }

void setArticulationType(ArticulationType);
ArticulationType articulationType() const { return _articulationType; }
Expand Down
4 changes: 2 additions & 2 deletions libmscore/chord.cpp
Expand Up @@ -1910,7 +1910,7 @@ Element* Chord::drop(const DropData& data)

qreal Chord::dotPosX() const
{
if(staffIdx())
if (parent())
return segment()->dotPosX(staffIdx());
return -1000.0;
}
Expand All @@ -1921,7 +1921,7 @@ qreal Chord::dotPosX() const

void Chord::setDotPosX(qreal val)
{
if (staffIdx())
if (parent())
segment()->setDotPosX(staffIdx(), val);
}

Expand Down

0 comments on commit f48ed4a

Please sign in to comment.