[Libreoffice-commits] core.git: sw/source

Justin Luth justin_luth at sil.org
Thu Oct 1 01:06:04 PDT 2015


 sw/source/uibase/dochdl/swdtflvr.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 52ea9712c424e3647fb67631806b8661baeaa150
Author: Justin Luth <justin_luth at sil.org>
Date:   Thu Oct 1 09:57:56 2015 +0300

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index bff6887..81b0c03 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 )


More information about the Libreoffice-commits mailing list