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
b8b96f77
Commit
b8b96f77
authored
Dec 06, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected drawing of zone outlines.
parent
afe2bbac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+8
-4
No files found.
pcbnew/pcb_painter.cpp
View file @
b8b96f77
...
@@ -756,11 +756,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
...
@@ -756,11 +756,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
for
(
int
i
=
0
;
i
<
outline
->
GetCornersCount
();
++
i
)
for
(
int
i
=
0
;
i
<
outline
->
GetCornersCount
();
++
i
)
{
{
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
i
)
)
);
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
i
)
)
);
if
(
outline
->
IsEndContour
(
i
)
)
{
// The last point for closing the polyline
corners
.
push_back
(
corners
[
0
]
);
m_gal
->
DrawPolyline
(
corners
);
corners
.
clear
();
}
}
}
// The last point for closing the polyline
corners
.
push_back
(
VECTOR2D
(
outline
->
GetPos
(
0
)
)
);
m_gal
->
DrawPolyline
(
corners
);
corners
.
clear
();
// Draw the filling
// Draw the filling
if
(
displayMode
!=
PCB_RENDER_SETTINGS
::
DZ_HIDE_FILLED
)
if
(
displayMode
!=
PCB_RENDER_SETTINGS
::
DZ_HIDE_FILLED
)
...
...
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