summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2015-10-01 09:57:56 +0300
committerCaolán McNamara <caolanm@redhat.com>2015-10-01 08:05:42 +0000
commit52ea9712c424e3647fb67631806b8661baeaa150 (patch)
tree055bf4829db0b6652eb88d576115faee85c23d98
parente6534a6099cc667dba3fe154023cf2c573fda9f1 (diff)
tdf#88128 fix unevaluated undo variable: cut
When cutting a selection in Writer, the undo/redo remark was "Delete $1". This affected both the Edit Menu->Undo/Redo, and the Undo/Redo toolbar. Change-Id: I158bf6637b080835ecefea2216c9ebaca7092bc8 Reviewed-on: https://gerrit.libreoffice.org/19035 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index bff6887c29d5..81b0c038179e 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -777,11 +777,11 @@ void SwTransferable::DeleteSelection()
return;
// ask for type of selection before action-bracketing
const int nSelection = m_pWrtShell->GetSelectionType();
- m_pWrtShell->StartUndo( UNDO_DELETE );
+ m_pWrtShell->StartUndo( UNDO_START );
if( ( nsSelectionType::SEL_TXT | nsSelectionType::SEL_TBL ) & nSelection )
m_pWrtShell->IntelligentCut( nSelection );
m_pWrtShell->DelRight();
- m_pWrtShell->EndUndo( UNDO_DELETE );
+ m_pWrtShell->EndUndo( UNDO_END );
}
int SwTransferable::PrepareForCopy( bool bIsCut )