| ... | ... |
@@ -476,11 +476,10 @@ class XDotParser: |
| 476 | 476 |
def parse(self): |
| 477 | 477 |
graph = pydot.graph_from_dot_data(self.xdotcode) |
| 478 | 478 |
|
| 479 |
- bb = graph.get_bb() |
|
| 480 |
- if bb is None: |
|
| 479 |
+ if graph.bb is None: |
|
| 481 | 480 |
return Graph() |
| 482 | 481 |
|
| 483 |
- xmin, ymin, xmax, ymax = map(int, bb.split(","))
|
|
| 482 |
+ xmin, ymin, xmax, ymax = map(int, graph.bb.split(","))
|
|
| 484 | 483 |
|
| 485 | 484 |
self.xoffset = -xmin |
| 486 | 485 |
self.yoffset = -ymax |