Browse code

Filled shapes are always outlined in dot (unless you specify the same color for the outline and the inside).

From: Marius Gedminas <marius@gedmin.as>

Jose.R.Fonseca authored on 13/07/2008 03:20:02
Showing 1 changed files

  • xdot.py index 204b784..19616d3 100755
... ...
@@ -480,7 +480,9 @@ class XDotAttrParser:
480 480
                 x0, y0 = s.read_point()
481 481
                 w = s.read_number()
482 482
                 h = s.read_number()
483
+                # xdot uses this to mean "draw a filled shape with an outline"
483 484
                 shapes.append(EllipseShape(pen, x0, y0, w, h, filled=True))
485
+                shapes.append(EllipseShape(pen, x0, y0, w, h))
484 486
             elif op == "e":
485 487
                 x0, y0 = s.read_point()
486 488
                 w = s.read_number()
... ...
@@ -491,7 +493,9 @@ class XDotAttrParser:
491 493
                 shapes.append(BezierShape(pen, p))
492 494
             elif op == "P":
493 495
                 p = self.read_polygon()
496
+                # xdot uses this to mean "draw a filled shape with an outline"
494 497
                 shapes.append(PolygonShape(pen, p, filled=True))
498
+                shapes.append(PolygonShape(pen, p))
495 499
             elif op == "p":
496 500
                 p = self.read_polygon()
497 501
                 shapes.append(PolygonShape(pen, p))