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

Miklos Vajna vmiklos at collabora.co.uk
Fri Apr 22 10:50:40 UTC 2016


 svl/source/undo/undo.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 508ca1d7531a58d58df934a4c8237921ae97ce1c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Apr 22 11:21:17 2016 +0200

    SfxUndoAction::dumpAsXml: show address of undo items
    
    The order of undo items on the undo stack is: the newest item is the
    first. But for grouped items SfxListUndoAction is a list, so newest
    elements go to the end of the list. It's easy to get confused without
    seeing the exact addresses.
    
    Change-Id: I5c336f2317e4f5869b9fd227c800b2e15d0644ff
    Reviewed-on: https://gerrit.libreoffice.org/24295
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 858c02f..58320a1 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -134,6 +134,7 @@ bool SfxUndoAction::CanRepeat(SfxRepeatTarget&) const
 void SfxUndoAction::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
     xmlTextWriterStartElement(pWriter, BAD_CAST("sfxUndoAction"));
+    xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
     xmlTextWriterWriteAttribute(pWriter, BAD_CAST("symbol"), BAD_CAST(typeid(*this).name()));
     xmlTextWriterWriteAttribute(pWriter, BAD_CAST("comment"), BAD_CAST(GetComment().toUtf8().getStr()));
     xmlTextWriterEndElement(pWriter);


More information about the Libreoffice-commits mailing list