MCPcopy Create free account
hub / github.com/LMMS/lmms / paste

Method paste

src/core/Track.cpp:197–207  ·  view source on GitHub ↗

! \brief Pastes this TrackContentObject into a track. * * Pastes this track content object into a track. * * \param _je The journal entry to undo */

Source from the content-addressed store, hash-verified

195 * \param _je The journal entry to undo
196 */
197void 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

Callers 1

Calls 2

nodeNameFunction · 0.50

Tested by

no test coverage detected