Skip navigation
Detlef V.
Currently Being Moderated

Delete one undo step from undo stack

Feb 8, 2011 6:01 AM

Hi,

 

I need to delete a single undo step (the last step) from the undo stack of InDesign.

If I use "cmdHistory->Discard(docUIDRef);" the whole undo stack is discarded.

 

Or is there a way to avoid a command sequence to be added to the undo stack - which would be the bettest way for my problem.

 

Thanks for any help

Detlef

 
Replies
  • Currently Being Moderated
    Feb 8, 2011 11:00 PM   in reply to Detlef V.

    Have you seen iActionManager->PerformAction( iActiveContext, kUndoActionID )

    But be aware the user can afterwards execute redo...

     

    Best

    Peter

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points