maoyg wrote: > I am working Issue88467# about Undo question in page preview. > I have some questions about it. If the Undo or Redo is possible in page > preview. > when I create a spreadsheet doc, I input some characters in cell, > the undo list have recorded input operation. it display "input" string. > when I switch from normal mode to page preview mode. the undo button can use, > but the undo list can't display any string. I don't know why it can't display > string in undo list?
SID_UNDO is disabled in ScPreviewShell::GetState. Unless you change all the undo action implementations, it has to stay that way. > I have called the method SetWidthOrHeight(...) in > ScPreview::MouseButtonUp(...), the undo can work, > but the undo list also can't display any string. > > I think I will revise the Redo method in ScUndoWidthOrHeight, when I call > Redo method in page preview mode, > because of the pViewShell is empty, it call SetWidthOrHeight(...) method, > enentually it will cause program crash. It's not enough to change only ScUndoWidthOrHeight. Any other undo action may already be in the undo list. Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]