Don't set dirty bit when adding MARKERs.

They're not saved in the file, so they shouldn't dirty it.

Fixes: lp:1762497
* https://bugs.launchpad.net/kicad/+bug/1762497
This commit is contained in:
Jeff Young
2018-04-09 21:19:11 +01:00
parent cb134fd065
commit 84151990cd
5 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ public:
COMMIT& Stage( const PICKED_ITEMS_LIST& aItems, UNDO_REDO_T aModFlag = UR_UNSPECIFIED );
///> Executes the changes.
virtual void Push( const wxString& aMessage = wxT( "A commit" ), bool aCreateUndoEntry = true ) = 0;
virtual void Push( const wxString& aMessage = wxT( "A commit" ),
bool aCreateUndoEntry = true, bool aSetDirtyBit = true ) = 0;
///> Revertes the commit by restoring the modifed items state.
virtual void Revert() = 0;