From: Marius Gedminas <marius@gedmin.as>
| ... | ... |
@@ -475,8 +475,10 @@ class XDotAttrParser: |
| 475 | 475 |
if style.startswith("setlinewidth("):
|
| 476 | 476 |
lw = style.split("(")[1].split(")")[0]
|
| 477 | 477 |
pen.linewidth = float(lw) |
| 478 |
+ elif style == "solid": |
|
| 479 |
+ pen.dash = () |
|
| 478 | 480 |
elif style == "dashed": |
| 479 |
- pen.dash = [6] # 6pt on, 6pt off |
|
| 481 |
+ pen.dash = (6, ) # 6pt on, 6pt off |
|
| 480 | 482 |
elif op == "F": |
| 481 | 483 |
pen.fontsize = s.read_float() |
| 482 | 484 |
pen.fontname = s.read_text() |