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
900ecbae
Commit
900ecbae
authored
Mar 16, 2015
by
John Beard
Committed by
Maciej Suminski
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for cancellation of duplicate in GAL mode.
parent
d80a3d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
edit_tool.cpp
pcbnew/tools/edit_tool.cpp
+5
-1
No files found.
pcbnew/tools/edit_tool.cpp
View file @
900ecbae
...
...
@@ -736,6 +736,9 @@ int EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
// the original
incUndoInhibit
();
if
(
m_editModules
)
editFrame
->
SaveCopyInUndoList
(
editFrame
->
GetBoard
()
->
m_Modules
,
UR_MODEDIT
);
std
::
vector
<
BOARD_ITEM
*>
old_items
;
for
(
int
i
=
0
;
i
<
selection
.
Size
();
++
i
)
...
...
@@ -778,7 +781,8 @@ int EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
}
// record the new items as added
editFrame
->
SaveCopyInUndoList
(
selection
.
items
,
UR_NEW
);
if
(
!
m_editModules
)
editFrame
->
SaveCopyInUndoList
(
selection
.
items
,
UR_NEW
);
editFrame
->
DisplayToolMsg
(
wxString
::
Format
(
_
(
"Duplicated %d item(s)"
),
(
int
)
old_items
.
size
()
)
);
...
...
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