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
68e942b2
Commit
68e942b2
authored
Feb 04, 2008
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A zone outline,when edited, is now properly redrawn after zooming
parent
d4562043
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
tracepcb.cpp
pcbnew/tracepcb.cpp
+4
-1
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+1
-1
zones_test_and_combine_areas.cpp
pcbnew/zones_test_and_combine_areas.cpp
+4
-4
No files found.
pcbnew/tracepcb.cpp
View file @
68e942b2
...
...
@@ -180,7 +180,10 @@ void WinEDA_PcbFrame::Trace_Pcb( wxDC* DC, int mode )
for
(
int
ii
=
0
;
ii
<
m_Pcb
->
GetAreaCount
();
ii
++
)
{
ZONE_CONTAINER
*
edge_zone
=
m_Pcb
->
GetArea
(
ii
);
edge_zone
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
mode
);
// Areas must be drawn here only if not moved or dragged,
// because these areas are drawn by ManageCursor() in a specific manner
if
(
(
edge_zone
->
m_Flags
&
(
IN_EDIT
|
IS_DRAGGED
|
IS_MOVED
))
==
0
)
edge_zone
->
Draw
(
DrawPanel
,
DC
,
wxPoint
(
0
,
0
),
mode
);
}
DrawGeneralRatsnest
(
DC
);
...
...
pcbnew/zones_by_polygon.cpp
View file @
68e942b2
...
...
@@ -33,7 +33,7 @@ using namespace std;
#include "protos.h"
bool
verbose
=
false
;
// false if zone outline diags mst not be shown
bool
verbose
=
false
;
// false if zone outline diags m
u
st not be shown
// Outline creation:
static
void
Abort_Zone_Create_Outline
(
WinEDA_DrawPanel
*
Panel
,
wxDC
*
DC
);
...
...
pcbnew/zones_test_and_combine_areas.cpp
View file @
68e942b2
...
...
@@ -738,8 +738,8 @@ int BOARD::CombineAreas( ZONE_CONTAINER* area_ref, ZONE_CONTAINER* area_to_combi
// external contour, replace this poly
for
(
int
i
=
0
;
i
<
union_gpc
->
contour
[
ic
].
num_vertices
;
i
++
)
{
int
x
=
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
x
;
int
y
=
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
y
;
int
x
=
(
int
)
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
x
;
int
y
=
(
int
)
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
y
;
if
(
i
==
0
)
{
area_ref
->
m_Poly
->
Start
(
area_ref
->
GetLayer
(
...
...
@@ -761,8 +761,8 @@ int BOARD::CombineAreas( ZONE_CONTAINER* area_ref, ZONE_CONTAINER* area_to_combi
// hole
for
(
int
i
=
0
;
i
<
union_gpc
->
contour
[
ic
].
num_vertices
;
i
++
)
{
int
x
=
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
x
;
int
y
=
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
y
;
int
x
=
(
int
)
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
x
;
int
y
=
(
int
)
(
(
union_gpc
->
contour
)[
ic
].
vertex
)[
i
].
y
;
area_ref
->
m_Poly
->
AppendCorner
(
x
,
y
);
}
...
...
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