Page 1 of 1

Get exception "cant modify empty undo list"

Posted: Fri Nov 09, 2007 3:07 pm
by michael76
After inserting a picture into an empty table cell I get an exception: "can't modify empty undo list". The picture is inserted using:

Code: Select all

editor->InsertPicture( "", Bitmap, rvvaBaseline );
editor = InPlace-Editor in TableCell
UndoLimit is -1
After calling this method, the exception occurs. Using this method outside the table works well.

Posted: Fri Nov 09, 2007 3:49 pm
by Sergey Tkachenko
The error may occur, for example, because of mismatched calls of SetUndoGroupMode. Do you call this method?

Posted: Fri Nov 09, 2007 9:24 pm
by michael76
Hi Sergey,
Sergey Tkachenko wrote:The error may occur, for example, because of mismatched calls of SetUndoGroupMode. Do you call this method?
No, there are no calls of SetUndoGroupMode!

Posted: Sat Nov 10, 2007 12:18 pm
by Sergey Tkachenko
Can you give me step-by-step instructions how to reproduce this problem?