Redo doesn't reset modified flag correctly

SyntaxEditor for Windows Forms Forum

Posted 17 years ago by Roy Arvenäs - Software Developer, TAT - The Astoning Tribe
Version: 4.0.0253
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
Hello

I have an issue with undo/redo and the modified flag of a SyntaxEditors document.
When I undo until a point where the document was not modified, it correctly sets the modified flag to false, but when I use redo, it sets modified to false one "step" after the document is back to unmodified state.

Example:

1)
Document
---------------------------------------------
Saved Saved Saved

at this point I set the modified flag to false, since the user has pressed save.

2)
I then Add some more text

Document
---------------------------------------------
Saved Saved Saved new text that is not saved

Modified: true (Correct)

3)
I undo so that my new text is removed going back to:

Document
---------------------------------------------
Saved Saved Saved


Modified: false (correct)

4)
I Undo one more step.

Document
---------------------------------------------


Modified: true (correct)

5)
I then redo again

Document
---------------------------------------------
Saved Saved Saved

Modified: true (incorrect)

6)
One more redo

Document
---------------------------------------------
Saved Saved Saved new text that is not saved

Modified: false (incorrect)


As can be seen in step 6, I get the flag set to false by redo, but it is done one step too late.

So, is this a bug, or am I doing something wrong when I reset the modified flag?

Sincerily
Roy Arvenäs, TAT

Comments (3)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Roy,

You are correct this appears to be a bug. I'll add it to the TODO list. Thanks for the detailed steps!


Actipro Software Support

Posted 14 years ago by Oleg
Avatar
The issue was not fixed in 4.0.0285 yet. Do you have plans to fix this problem?
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes this is fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.