diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-27 17:34:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-27 17:35:18 +0100 |
commit | 61cc3f285a3d32b754435d1a1b513abeca8fb4e7 (patch) | |
tree | c8d77df72371bd51a60b0c3d7b6b5d8f4232a869 /solenv | |
parent | 7d7c7c44e52814acdad39c6e92e53fd332c1e683 (diff) |
Adapt FractionPrinter
Change-Id: Ibc6302ea52458874f748f3ec2757bb60ad742fce
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/tl.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py index cc02b0922ae5..2ef02bdcfed7 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) |