Skip to content

Commit

Permalink
fix #181671 restrict all Text drag to Page Boundaries
Browse files Browse the repository at this point in the history
Previously only restriced drag to elements of class Text, but not their derived classes such as Staff Text, Chord Text, System Text, etc.
  • Loading branch information
Eric Fontaine committed Mar 16, 2017
1 parent bd894bd commit 60b1b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ QRectF Element::drag(EditData* data)
setUserOff(QPointF(x, y));
setGenerated(false);

if (type() == ElementType::TEXT) { // TODO: check for other types
if (isText()) { // TODO: check for other types
//
// restrict move to page boundaries
//
Expand Down

0 comments on commit 60b1b91

Please sign in to comment.