Add history to Clear Guides

This commit is contained in:
2019-06-26 15:36:38 +02:00
parent b444cec46d
commit 1bffeb2d03
2 changed files with 7 additions and 37 deletions

View File

@@ -538,6 +538,13 @@ void CanvasModeGrid::commit()
void CanvasModeGrid::clear()
{
auto a = new ActionModeGrid;
a->m_mode = this;
a->m_highlight = m_highlight;
a->m_selected_index = m_selected_index;
a->m_lines = m_lines;
ActionManager::add(a);
m_lines.clear();
}