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
04c7eb29
Commit
04c7eb29
authored
Dec 02, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed zone creation problem with DRC OFF and an other minor bug
parent
98869621
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ratsnest.cpp
pcbnew/ratsnest.cpp
+1
-1
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+1
-1
No files found.
pcbnew/ratsnest.cpp
View file @
04c7eb29
...
@@ -505,7 +505,7 @@ void WinEDA_BasePcbFrame::Build_Board_Ratsnest( wxDC* DC )
...
@@ -505,7 +505,7 @@ void WinEDA_BasePcbFrame::Build_Board_Ratsnest( wxDC* DC )
// erase the ratsnest displayed on screen if needed
// erase the ratsnest displayed on screen if needed
for
(
unsigned
ii
=
0
;
ii
<
m_Pcb
->
GetRatsnestsCount
();
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
m_Pcb
->
GetRatsnestsCount
();
ii
++
)
{
{
if
(
!
g_Show_Ratsnest
&&
DC
)
// Clear VISIBLE flag
if
(
!
g_Show_Ratsnest
)
// Clear VISIBLE flag
m_Pcb
->
m_FullRatsnest
[
ii
].
m_Status
&=
~
CH_VISIBLE
;
m_Pcb
->
m_FullRatsnest
[
ii
].
m_Status
&=
~
CH_VISIBLE
;
if
(
DC
)
if
(
DC
)
...
...
pcbnew/zones_by_polygon.cpp
View file @
04c7eb29
...
@@ -598,7 +598,7 @@ int WinEDA_PcbFrame::Begin_Zone( wxDC* DC )
...
@@ -598,7 +598,7 @@ int WinEDA_PcbFrame::Begin_Zone( wxDC* DC )
if
(
zone
->
GetCornerPosition
(
ii
-
1
)
!=
zone
->
GetCornerPosition
(
ii
)
)
if
(
zone
->
GetCornerPosition
(
ii
-
1
)
!=
zone
->
GetCornerPosition
(
ii
)
)
{
{
if
(
(
Drc_On
&&
m_drc
->
Drc
(
zone
,
ii
-
1
)
==
OK_DRC
)
if
(
(
Drc_On
&&
m_drc
->
Drc
(
zone
,
ii
-
1
)
==
OK_DRC
)
||
!
zone
->
IsOnCopperLayer
()
)
// Ok, we can add a new corner
||
!
Drc_On
||
!
zone
->
IsOnCopperLayer
()
)
// Ok, we can add a new corner
{
{
zone
->
AppendCorner
(
GetScreen
()
->
m_Curseur
);
zone
->
AppendCorner
(
GetScreen
()
->
m_Curseur
);
SetCurItem
(
zone
);
// calls DisplayInfo().
SetCurItem
(
zone
);
// calls DisplayInfo().
...
...
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