fix basegfx.py
after
commit 3c82f49fce
Author: Armin Le Grand (allotropia)
<armin.le.grand.extern@allotropia.de>
Date: Mon Sep 23 17:57:00 2024 +0200
Adapting basegfx.py due to blocking in some situations
Change-Id: Ie266c7b5aeb5dccaae03c26b7cd73cd65841748c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173949
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
parent
eb688cf19d
commit
f513741bdc
1 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ class B2DPolygonPrinter(object):
|
|||
def _count(self):
|
||||
# It's a call into the inferior (being debugged) process.
|
||||
# Will not work with core dumps and can cause a deadlock.
|
||||
if self.exists()
|
||||
if self.exists():
|
||||
return int(gdb.parse_and_eval(
|
||||
"(('basegfx::B2DPolygon' *) {})->count()".format(self.value.address)))
|
||||
|
||||
|
@ -70,7 +70,7 @@ class B2DPolygonPrinter(object):
|
|||
def _hasCurves(self):
|
||||
# It's a call into the inferior (being debugged) process.
|
||||
# Will not work with core dumps and can cause a deadlock.
|
||||
if self.exists()
|
||||
if self.exists():
|
||||
return int(gdb.parse_and_eval(
|
||||
"(('basegfx::B2DPolygon' *) {})->areControlPointsUsed()".format(self.value.address))) != 0
|
||||
|
||||
|
@ -153,14 +153,14 @@ class B2DPolyPolygonPrinter(object):
|
|||
def _count(self):
|
||||
# It's a call into the inferior (being debugged) process.
|
||||
# Will not work with core dumps and can cause a deadlock.
|
||||
if self.exists()
|
||||
if self.exists():
|
||||
return int(gdb.parse_and_eval(
|
||||
"(('basegfx::B2DPolyPolygon' *) {})->count()".format(self.value.address)))
|
||||
|
||||
def _isClosed(self):
|
||||
# It's a call into the inferior (being debugged) process.
|
||||
# Will not work with core dumps and can cause a deadlock.
|
||||
if self.exists()
|
||||
if self.exists():
|
||||
return int(gdb.parse_and_eval(
|
||||
"(('basegfx::B2DPolyPolygon' *) {})->isClosed()".format(self.value.address))) != 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue