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
8d23b26f
Commit
8d23b26f
authored
Aug 26, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema, Libedit: fix crash in undo/redo commands (due to double deletion) (bug #1358217 )
parent
d8c3ccb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
libedit_undo_redo.cpp
eeschema/libedit_undo_redo.cpp
+10
-2
No files found.
eeschema/libedit_undo_redo.cpp
View file @
8d23b26f
...
@@ -51,7 +51,11 @@ void LIB_EDIT_FRAME::GetComponentFromRedoList( wxCommandEvent& event )
...
@@ -51,7 +51,11 @@ void LIB_EDIT_FRAME::GetComponentFromRedoList( wxCommandEvent& event )
part
=
(
LIB_PART
*
)
wrapper
.
GetItem
();
part
=
(
LIB_PART
*
)
wrapper
.
GetItem
();
SetCurPart
(
part
);
// Do not delete the previous part by calling SetCurPart( part )
// which calls delete <previous part>.
// <previous part> is now put in undo list and is owned by this list
// Just set the current part to the part which come from the redo list
m_my_part
=
part
;
if
(
!
part
)
if
(
!
part
)
return
;
return
;
...
@@ -90,7 +94,11 @@ void LIB_EDIT_FRAME::GetComponentFromUndoList( wxCommandEvent& event )
...
@@ -90,7 +94,11 @@ void LIB_EDIT_FRAME::GetComponentFromUndoList( wxCommandEvent& event )
part
=
(
LIB_PART
*
)
wrapper
.
GetItem
();
part
=
(
LIB_PART
*
)
wrapper
.
GetItem
();
SetCurPart
(
part
);
// Do not delete the previous part by calling SetCurPart( part ),
// which calls delete <previous part>.
// <previous part> is now put in redo list and is owned by this list.
// Just set the current part to the part which come from the undo list
m_my_part
=
part
;
if
(
!
part
)
if
(
!
part
)
return
;
return
;
...
...
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