Skip to content

Commit

Permalink
Fix GH#22320: Score corrupt after copy/paste whole note and change du…
Browse files Browse the repository at this point in the history
…ration

Backport of musescore#22352

Plus some includes cleanup
  • Loading branch information
Eism authored and Jojo-Schmitz committed Apr 12, 2024
1 parent f01e1e8 commit acbfac0
Showing 1 changed file with 32 additions and 34 deletions.
66 changes: 32 additions & 34 deletions libmscore/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,49 @@
Implementation of classes Note and ShadowNote.
*/

#include <assert.h>
//#include <assert.h>
#include <QPointF>
#include <QtMath>
#include <QVector2D>

#include "global/log.h"

#include "note.h"
#include "score.h"
#include "chord.h"
#include "sym.h"
#include "xml.h"
#include "slur.h"
#include "tie.h"
#include "text.h"
#include "clef.h"
#include "staff.h"
#include "pitchspelling.h"
#include "accidental.h"
#include "arpeggio.h"
#include "tremolo.h"
#include "utils.h"
#include "image.h"
#include "system.h"
#include "tuplet.h"
#include "articulation.h"
#include "bagpembell.h"
#include "bend.h"
#include "chord.h"
#include "clef.h"
#include "score.h"
#include "drumset.h"
#include "segment.h"
#include "measure.h"
#include "undo.h"
#include "part.h"
#include "stafftype.h"
#include "stringdata.h"
#include "fret.h"
#include "harmony.h"
#include "fingering.h"
#include "bend.h"
#include "accidental.h"
#include "page.h"
#include "glissando.h"
#include "hairpin.h"
#include "hook.h"
#include "icon.h"
#include "image.h"
#include "measure.h"
#include "note.h"
#include "notedot.h"
#include "page.h"
#include "part.h"
#include "pitchspelling.h"
#include "segment.h"
#include "spanner.h"
#include "glissando.h"
#include "bagpembell.h"
#include "hairpin.h"
#include "staff.h"
#include "stafftype.h"
#include "stringdata.h"
#include "sym.h"
#include "system.h"
#include "textline.h"
#include "hook.h"
#include <QPointF>
#include <QtMath>
#include <QVector2D>
#include "tie.h"
#include "tremolo.h"
#include "tuplet.h"
#include "undo.h"
#include "utils.h"
#include "xml.h"

namespace Ms {

Expand Down Expand Up @@ -1874,6 +1871,7 @@ Element* Note::drop(EditData& data)
}
score()->undoRemoveElement(this);
score()->undoAddElement(n);
return n;
}
break;

Expand Down

0 comments on commit acbfac0

Please sign in to comment.