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
406d7c4a
Commit
406d7c4a
authored
Jun 15, 2015
by
Tiago Peixoto
Browse files
gtk_draw(): Fix re-drawing after panning
parent
627015f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/gtk_draw.py
View file @
406d7c4a
...
...
@@ -465,8 +465,11 @@ class GraphWidget(Gtk.DrawingArea):
self
.
regenerate_surface
(
lazy
=
False
)
self
.
geometry
=
geometry
cr
.
save
()
cr
.
set_matrix
(
self
.
smatrix
)
ul
=
self
.
pos_to_device
((
0
,
0
),
surface
=
True
,
cr
=
cr
)
lr
=
self
.
pos_to_device
(
self
.
base_geometry
,
surface
=
True
,
cr
=
cr
)
cr
.
restore
()
if
(
ul
[
0
]
>
0
or
lr
[
0
]
<
geometry
[
0
]
or
ul
[
1
]
>
0
or
lr
[
1
]
<
geometry
[
1
]):
...
...
Write
Preview
Supports
Markdown
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