Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
e43b5f7c
Commit
e43b5f7c
authored
Feb 11, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix for crippled polylines containing 0 points.
parent
c09e8ade
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+4
-1
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
e43b5f7c
...
...
@@ -466,10 +466,13 @@ void OPENGL_GAL::DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEn
void
OPENGL_GAL
::
DrawPolyline
(
std
::
deque
<
VECTOR2D
>&
aPointList
)
{
if
(
aPointList
.
empty
()
)
return
;
std
::
deque
<
VECTOR2D
>::
const_iterator
it
=
aPointList
.
begin
();
// Start from the second point
for
(
it
++
;
it
!=
aPointList
.
end
();
it
++
)
for
(
++
it
;
it
!=
aPointList
.
end
();
++
it
)
{
const
VECTOR2D
startEndVector
=
(
*
it
-
*
(
it
-
1
)
);
double
lineAngle
=
startEndVector
.
Angle
();
...
...
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