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
a73e9a00
Commit
a73e9a00
authored
Feb 20, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: fixed a bug that crashes libedit when using a block copy command.
parent
c2389e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
class_libentry.cpp
eeschema/class_libentry.cpp
+8
-1
No files found.
eeschema/class_libentry.cpp
View file @
a73e9a00
...
...
@@ -1122,8 +1122,15 @@ void LIB_COMPONENT::DeleteSelectedItems()
void
LIB_COMPONENT
::
CopySelectedItems
(
const
wxPoint
&
aOffset
)
{
BOOST_FOREACH
(
LIB_DRAW_ITEM
&
item
,
drawings
)
/* *do not* use iterators here, because new items
* are added to drawings that is a boost::ptr_vector.
* When push_back elements in buffer,
* a memory reallocation can happen and will break pointers
*/
unsigned
icnt
=
drawings
.
size
();
for
(
unsigned
ii
=
0
;
ii
<
icnt
;
ii
++
)
{
LIB_DRAW_ITEM
&
item
=
drawings
[
ii
];
if
(
item
.
m_Selected
==
0
)
continue
;
...
...
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