Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic UndoManager in 5.0 beta (Read 2183 times)
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
UndoManager in 5.0 beta
Aug 27th, 2007 at 5:24am
Print Post  
Hello,

I recently upgraded our project to the 5.0 beta version. But now I have a problem with the Undomanager:

If I add an item from the ShapeList with Drag&Drop, i got 2 commands in the UndoManager.History before NodeCreated is raised.
The first command is a ModifyItemCmd, the second is a AddItemCmd.
After that, several other commands can be added without problems, but if I try to undo all (until NextUndo == null), I got a null reference exception on the first cmd in the history (which is the ModifyItemCmd).

I don't know if there is a bug or if I just do this wrong. It seems to me that undoing the AddItemCmd deletes the object and the ModifyItemCmd then has a null reference.

Any ideas with that problem?

Best regards,

Alex
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: UndoManager in 5.0 beta
Reply #1 - Aug 27th, 2007 at 8:43am
Print Post  
Hello,

That's a bug. We'll upload a fixed beta version tomorrow.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: UndoManager in 5.0 beta
Reply #2 - Aug 28th, 2007 at 11:05am
Print Post  
This version should work better:
https://mindfusion.eu/FCNetBeta.zip

Stoyan
  
Back to top
 
IP Logged
 
Alex
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Nov 21st, 2006
Re: UndoManager in 5.0 beta
Reply #3 - Aug 29th, 2007 at 6:17am
Print Post  
Yes, works perfectly!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint