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
4d6f628a
Commit
4d6f628a
authored
Mar 18, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes to zone drawing tool.
parent
1ff99b47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drawing_tool.cpp
pcbnew/tools/drawing_tool.cpp
+15
-0
No files found.
pcbnew/tools/drawing_tool.cpp
View file @
4d6f628a
...
...
@@ -970,10 +970,15 @@ int DRAWING_TOOL::drawZone( bool aKeepout )
if
(
numPoints
>
0
)
// cancel the current zone
{
delete
zone
;
zone
=
NULL
;
m_controls
->
SetAutoPan
(
false
);
if
(
direction45
)
{
preview
.
Remove
(
&
line45
);
direction45
=
false
;
}
preview
.
FreeItems
();
updatePreview
=
true
;
...
...
@@ -1010,10 +1015,20 @@ int DRAWING_TOOL::drawZone( bool aKeepout )
zone
=
NULL
;
}
else
{
delete
zone
;
zone
=
NULL
;
}
numPoints
=
0
;
m_controls
->
SetAutoPan
(
false
);
if
(
direction45
)
{
preview
.
Remove
(
&
line45
);
direction45
=
false
;
}
preview
.
FreeItems
();
updatePreview
=
true
;
}
...
...
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