Get exception "cant modify empty undo list"

General TRichView support forum. Please post your questions here
Post Reply
michael76
Posts: 15
Joined: Tue Jun 12, 2007 6:29 pm

Get exception "cant modify empty undo list"

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The error may occur, for example, because of mismatched calls of SetUndoGroupMode. Do you call this method?
michael76
Posts: 15
Joined: Tue Jun 12, 2007 6:29 pm

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you give me step-by-step instructions how to reproduce this problem?
Post Reply