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
d24c41ff
Commit
d24c41ff
authored
May 02, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zone_container xor artifact cleanups
parent
2e94a708
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
change_log.txt
change_log.txt
+4
-3
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+11
-5
No files found.
change_log.txt
View file @
d24c41ff
...
...
@@ -9,9 +9,10 @@ email address.
2008-May-2 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
+pcbnew
Added ZONE_CONTAINER::GetBoundingBox() and used it to clean up
ZONE_CONTAINER deletion. There is still a problem dragging a zone container
edge that I will not get to.
* Added ZONE_CONTAINER::GetBoundingBox() and used it to clean up
ZONE_CONTAINER deletion.
* For end of edge dragging activity: used full DrawPanel->Refresh()
to clean up all XOR artifacts.
2008-May-1 UPDATE Dick Hollenbeck <dick@softplc.com>
...
...
pcbnew/zones_by_polygon.cpp
View file @
d24c41ff
...
...
@@ -322,15 +322,18 @@ void WinEDA_PcbFrame::End_Move_Zone_Corner_Or_Outlines( wxDC* DC, ZONE_CONTAINER
/* Combine zones if possible */
wxBusyCursor
dummy
;
int
layer
=
zone_container
->
GetLayer
();
//
int layer = zone_container->GetLayer();
m_Pcb
->
RedrawAreasOutlines
(
DrawPanel
,
DC
,
GR_XOR
,
layer
);
//
m_Pcb->RedrawAreasOutlines( DrawPanel, DC, GR_XOR, layer );
m_Pcb
->
AreaPolygonModified
(
zone_container
,
true
,
verbose
);
m_Pcb
->
RedrawAreasOutlines
(
DrawPanel
,
DC
,
GR_OR
,
layer
);
// m_Pcb->RedrawAreasOutlines( DrawPanel, DC, GR_OR, layer );
DrawPanel
->
Refresh
();
int
ii
=
m_Pcb
->
GetAreaIndex
(
zone_container
);
// test if zone_container exists
if
(
ii
<
0
)
zone_container
=
NULL
;
// was removed by combining zones
int
error_count
=
m_Pcb
->
Test_Drc_Areas_Outlines_To_Areas_Outlines
(
zone_container
,
true
);
if
(
error_count
)
{
...
...
@@ -392,7 +395,7 @@ void Abort_Zone_Move_Corner_Or_Outlines( WinEDA_DrawPanel* Panel, wxDC* DC )
WinEDA_PcbFrame
*
pcbframe
=
(
WinEDA_PcbFrame
*
)
Panel
->
m_Parent
;
ZONE_CONTAINER
*
zone_container
=
(
ZONE_CONTAINER
*
)
pcbframe
->
GetCurItem
();
zone_container
->
Draw
(
Panel
,
DC
,
GR_XOR
);
//
zone_container->Draw( Panel, DC, GR_XOR );
if
(
zone_container
->
m_Flags
==
IS_MOVED
)
{
...
...
@@ -418,7 +421,10 @@ void Abort_Zone_Move_Corner_Or_Outlines( WinEDA_DrawPanel* Panel, wxDC* DC )
zone_container
->
m_Poly
->
MoveCorner
(
zone_container
->
m_CornerSelection
,
pos
.
x
,
pos
.
y
);
}
}
zone_container
->
Draw
(
Panel
,
DC
,
GR_XOR
);
// zone_container->Draw( Panel, DC, GR_XOR );
Panel
->
Refresh
();
Panel
->
ManageCurseur
=
NULL
;
Panel
->
ForceCloseManageCurseur
=
NULL
;
...
...
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