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
ce514489
Commit
ce514489
authored
Dec 17, 2015
by
Tiago Peixoto
Browse files
Fix self-loop bug in graph_draw()
parent
615a8925
Pipeline
#81
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/graph/draw/graph_cairo_draw.cc
View file @
ce514489
...
...
@@ -1161,6 +1161,10 @@ public:
cr
.
set_line_width
(
pw
);
draw_edge_line
(
pos_begin
,
pos_end
,
controls
,
cr
);
cr
.
get_stroke_extents
(
sx1
,
sy1
,
sx2
,
sy2
);
sx1
-=
pw
;
sx2
+=
pw
;
sy1
-=
pw
;
sy2
+=
pw
;
cr
.
begin_new_path
();
cr
.
rectangle
(
sx1
,
sy1
,
sx2
-
sx1
,
sy2
-
sy1
);
_s
.
draw
(
cr
,
true
);
...
...
@@ -1230,6 +1234,10 @@ public:
double
sx1
,
sy1
,
sx2
,
sy2
;
draw_edge_line
(
pos_begin
,
pos_end
,
controls
,
cr
);
cr
.
get_stroke_extents
(
sx1
,
sy1
,
sx2
,
sy2
);
sx1
-=
pw
;
sx2
+=
pw
;
sy1
-=
pw
;
sy2
+=
pw
;
cr
.
begin_new_path
();
cr
.
rectangle
(
sx1
,
sy1
,
sx2
-
sx1
,
sy2
-
sy1
);
draw_edge_markers
(
pos_begin_marker
,
pos_begin_d
,
pos_end_marker
,
...
...
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