From 8859b4b5b04c863ebc9df67c20afd330feaadf00 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 21 Apr 2019 18:15:23 +0200 Subject: 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 --- solenv/gdb/libreoffice/tl.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'solenv') 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: -- cgit