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
f0e7363f
Commit
f0e7363f
authored
Feb 20, 2015
by
Tomasz Wlostowski
Committed by
Maciej Suminski
Feb 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHAPE_LINE_CHAIN: fix segfault
parent
11e2bdf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
shape_line_chain.cpp
common/geometry/shape_line_chain.cpp
+1
-1
No files found.
common/geometry/shape_line_chain.cpp
View file @
f0e7363f
...
@@ -428,7 +428,7 @@ SHAPE_LINE_CHAIN& SHAPE_LINE_CHAIN::Simplify()
...
@@ -428,7 +428,7 @@ SHAPE_LINE_CHAIN& SHAPE_LINE_CHAIN::Simplify()
else
if
(
PointCount
()
==
2
)
else
if
(
PointCount
()
==
2
)
{
{
if
(
m_points
[
0
]
==
m_points
[
1
]
)
if
(
m_points
[
0
]
==
m_points
[
1
]
)
m_points
.
erase
(
m_points
.
end
()
);
m_points
.
pop_back
(
);
return
*
this
;
return
*
this
;
}
}
...
...
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