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

Stephan Bergmann sbergman at redhat.com
Tue Jan 27 08:35:56 PST 2015


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

New commits:
commit 61cc3f285a3d32b754435d1a1b513abeca8fb4e7
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 27 17:34:44 2015 +0100

    Adapt FractionPrinter
    
    Change-Id: Ibc6302ea52458874f748f3ec2757bb60ad742fce

diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py
index cc02b09..2ef02bd 100644
--- a/solenv/gdb/libreoffice/tl.py
+++ b/solenv/gdb/libreoffice/tl.py
@@ -63,9 +63,10 @@ class FractionPrinter(object):
         self.val = val
 
     def to_string(self):
-        numerator = self.val['value']['num']
-        denominator = self.val['value']['den']
-        if self.val['valid']:
+        impl = self.val['mpImpl'].dereference()
+        numerator = impl['value']['num']
+        denominator = impl['value']['den']
+        if impl['valid']:
             return "%d/%d" % (numerator, denominator)
         else:
             return "invalid %s %d/%d" % (self.typename, numerator, denominator)


More information about the Libreoffice-commits mailing list