summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/cfwl_edit.cpp')
-rw-r--r--xfa/fwl/cfwl_edit.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp
index 92d8c0266b..eb54375e29 100644
--- a/xfa/fwl/cfwl_edit.cpp
+++ b/xfa/fwl/cfwl_edit.cpp
@@ -363,24 +363,18 @@ bool CFWL_Edit::Paste(const CFX_WideString& wsPaste) {
return true;
}
-bool CFWL_Edit::Redo(const IFDE_TxtEdtDoRecord* pRecord) {
- return m_EdtEngine.Redo(pRecord);
-}
-
-bool CFWL_Edit::Undo(const IFDE_TxtEdtDoRecord* pRecord) {
- return m_EdtEngine.Undo(pRecord);
-}
-
bool CFWL_Edit::Undo() {
if (!CanUndo())
return false;
- return Undo(m_DoRecords[m_iCurRecord--].get());
+ m_EdtEngine.Undo(m_DoRecords[m_iCurRecord--].get());
+ return true;
}
bool CFWL_Edit::Redo() {
if (!CanRedo())
return false;
- return Redo(m_DoRecords[++m_iCurRecord].get());
+ m_EdtEngine.Redo(m_DoRecords[++m_iCurRecord].get());
+ return true;
}
bool CFWL_Edit::CanUndo() {