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
b8e3ff8c
Commit
b8e3ff8c
authored
Mar 05, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed undo while PNS is active.
parent
c557e52d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
pns_router.cpp
pcbnew/router/pns_router.cpp
+6
-6
No files found.
pcbnew/router/pns_router.cpp
View file @
b8e3ff8c
...
@@ -324,6 +324,9 @@ PNS_ROUTER::~PNS_ROUTER()
...
@@ -324,6 +324,9 @@ PNS_ROUTER::~PNS_ROUTER()
{
{
ClearWorld
();
ClearWorld
();
theRouter
=
NULL
;
theRouter
=
NULL
;
if
(
m_previewItems
)
delete
m_previewItems
;
}
}
...
@@ -338,13 +341,9 @@ void PNS_ROUTER::ClearWorld()
...
@@ -338,13 +341,9 @@ void PNS_ROUTER::ClearWorld()
if
(
m_placer
)
if
(
m_placer
)
delete
m_placer
;
delete
m_placer
;
if
(
m_previewItems
)
delete
m_previewItems
;
m_clearanceFunc
=
NULL
;
m_clearanceFunc
=
NULL
;
m_world
=
NULL
;
m_world
=
NULL
;
m_placer
=
NULL
;
m_placer
=
NULL
;
m_previewItems
=
NULL
;
}
}
...
@@ -468,9 +467,10 @@ void PNS_ROUTER::EraseView()
...
@@ -468,9 +467,10 @@ void PNS_ROUTER::EraseView()
}
}
if
(
m_previewItems
)
if
(
m_previewItems
)
{
m_previewItems
->
FreeItems
();
m_previewItems
->
FreeItems
();
m_previewItems
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
m_previewItems
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
}
}
}
...
...
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