From 508ca1d7531a58d58df934a4c8237921ae97ce1c Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 22 Apr 2016 11:21:17 +0200 Subject: 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 Tested-by: Jenkins --- svl/source/undo/undo.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'svl') diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 858c02fde6de..58320a1e2744 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); -- cgit v1.2.3