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
2fa082f6
Commit
2fa082f6
authored
May 21, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug lp:1319839
parent
f31f92e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dialog_fp_lib_table.cpp
pcbnew/dialogs/dialog_fp_lib_table.cpp
+9
-4
No files found.
pcbnew/dialogs/dialog_fp_lib_table.cpp
View file @
2fa082f6
...
...
@@ -166,7 +166,9 @@ public:
bool
DeleteRows
(
size_t
aPos
,
size_t
aNumRows
)
{
if
(
aPos
+
aNumRows
<=
rows
.
size
()
)
// aPos may be a large positive, e.g. size_t(-1), and the sum of
// aPos+aNumRows may wrap here, so both ends of the range are tested.
if
(
aPos
<
rows
.
size
()
&&
aPos
+
aNumRows
<=
rows
.
size
()
)
{
ROWS_ITER
start
=
rows
.
begin
()
+
aPos
;
rows
.
erase
(
start
,
start
+
aNumRows
);
...
...
@@ -512,10 +514,13 @@ private:
int
rowCount
=
m_cur_grid
->
GetNumberRows
();
int
curRow
=
getCursorRow
();
m_cur_grid
->
DeleteRows
(
curRow
);
if
(
curRow
>=
0
)
{
m_cur_grid
->
DeleteRows
(
curRow
);
if
(
curRow
&&
curRow
==
rowCount
-
1
)
m_cur_grid
->
SetGridCursor
(
curRow
-
1
,
getCursorCol
()
);
if
(
curRow
&&
curRow
==
rowCount
-
1
)
m_cur_grid
->
SetGridCursor
(
curRow
-
1
,
getCursorCol
()
);
}
}
void
moveUpHandler
(
wxMouseEvent
&
event
)
...
...
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