MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / lastExecutedCmd

Method lastExecutedCmd

src/app/document_undo.cpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136Cmd* DocumentUndo::lastExecutedCmd() const
137{
138 const undo::UndoState* state = m_undoHistory.currentState();
139 if (state)
140 return static_cast<Cmd*>(state->cmd());
141 else
142 return NULL;
143}
144
145void DocumentUndo::moveToState(const undo::UndoState* state)
146{

Callers 1

Calls 1

currentStateMethod · 0.80

Tested by

no test coverage detected