summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-04-22 11:21:17 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-04-22 10:50:17 +0000
commit508ca1d7531a58d58df934a4c8237921ae97ce1c (patch)
treec55770b1e6e8cf85d4fd12b3b031e9eb29bf748e /svl
parent2c562c6ae0970d175e9b219e75afd77fcd1fc490 (diff)
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@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/undo/undo.cxx1
1 files changed, 1 insertions, 0 deletions
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);