Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
d839faf9
Commit
d839faf9
authored
Dec 09, 2012
by
Tiago Peixoto
Browse files
Fix bug when vertex_font_size is a property map
parent
b974e3c5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
d839faf9
...
...
@@ -793,6 +793,7 @@ def get_bb(g, pos, size, pen_width, size_scale=1, text=None, font_family=None,
cr
.
select_font_face
(
ff
)
fs
=
font_size
[
v
]
if
isinstance
(
font_family
,
PropertyMap
)
\
else
font_size
if
not
isinstance
(
font_size
,
PropertyMap
):
cr
.
set_font_size
(
fs
)
t
=
text
[
v
]
if
isinstance
(
text
,
PropertyMap
)
else
text
if
not
isinstance
(
t
,
str
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment