summaryrefslogtreecommitdiff
path: root/solenv/gdb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-21 18:15:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-21 21:19:20 +0200
commit8859b4b5b04c863ebc9df67c20afd330feaadf00 (patch)
treee8203041c0dc7c1eaf7b121b966d9ee8344433b1 /solenv/gdb
parent0ec98930888ee9f29032d12185baefc71da8489f (diff)
fix gdb helper for Color
after commit d487d6e082bc7ce652217578ffd37397a59cc3ca Date: Sat Apr 20 11:06:11 2019 +0900 rework Color to have R,G,B,A public variables Change-Id: I0ebbb071d2fad43bd49ef8421804657dfdfc446d Reviewed-on: https://gerrit.libreoffice.org/71041 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv/gdb')
-rw-r--r--solenv/gdb/libreoffice/tl.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py
index dec0ae2f0d53..44f3c78210cb 100644
--- a/solenv/gdb/libreoffice/tl.py
+++ b/solenv/gdb/libreoffice/tl.py
@@ -44,11 +44,10 @@ class ColorPrinter(object):
self.val = val
def to_string(self):
- color = self.val['mnColor']
- b = color & 0xff
- g = (color >> 8) & 0xff
- r = (color >> 16) & 0xff
- a = (color >> 24) & 0xff
+ r = self.val['R']
+ g = self.val['G']
+ b = self.val['B']
+ a = self.val['A']
if a:
return "rgba(%d, %d, %d, %d)" % (r, g, b, a)
else: