[Libreoffice-commits] core.git: solenv/gdb

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 21 19:20:18 UTC 2019


 solenv/gdb/libreoffice/tl.py |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 8859b4b5b04c863ebc9df67c20afd330feaadf00
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun Apr 21 18:15:23 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Apr 21 21:19:20 2019 +0200

    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 at collabora.co.uk>

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:


More information about the Libreoffice-commits mailing list