! \brief Pastes this TrackContentObject into a track. * * Pastes this track content object into a track. * * \param _je The journal entry to undo */
| 195 | * \param _je The journal entry to undo |
| 196 | */ |
| 197 | void TrackContentObject::paste() |
| 198 | { |
| 199 | if( Clipboard::getContent( nodeName() ) != NULL ) |
| 200 | { |
| 201 | const MidiTime pos = startPosition(); |
| 202 | restoreState( *( Clipboard::getContent( nodeName() ) ) ); |
| 203 | movePosition( pos ); |
| 204 | } |
| 205 | AutomationPattern::resolveAllIDs(); |
| 206 | GuiApplication::instance()->automationEditor()->m_editor->updateAfterPatternChange(); |
| 207 | } |
| 208 | |
| 209 | |
| 210 |
no test coverage detected