summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-16 11:13:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-16 12:11:48 +0200
commit6e2b926f82dd0da2edd0ca6edaf6fc0a0a8ceef9 (patch)
tree7032d3c4fa2dbd764abaf501b6e735aded797d09
parent155e8b1683f10847ff18e75287e2466220242bb1 (diff)
fix SwContentIndexPrinter pretty printer
after commit 739f3bb7228fa8c33029af46093b4646f848814b Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Wed Aug 31 15:29:20 2022 +0200 improve the SwContentIndex debug pretty printer Change-Id: Ib7b30f2f7d9a33f70243d8b72357b6f9823bc397 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140062 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--solenv/gdb/libreoffice/sw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index fc5ff62dad0e..3ca9a7f64413 100644
--- a/solenv/gdb/libreoffice/sw.py
+++ b/solenv/gdb/libreoffice/sw.py
@@ -51,9 +51,9 @@ class SwContentIndexPrinter(object):
if pNode:
node = pNode.dereference()
block = node['m_pBlock'].dereference();
- nodeindex = block['nStart'] + node['m_nOffset']
+ nodeindex = str(block['nStart'] + node['m_nOffset'])
offset = self.value['m_nIndex']
- return "%s (node %d offset %d)" % (self.typename, nodeindex, offset)
+ return "%s (node %s offset %s)" % (self.typename, nodeindex, offset)
class SwPaMPrinter(object):
'''Prints SwPaM.'''