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
58623062
Commit
58623062
authored
Oct 22, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When pasting into a fp_lib_table with no initial rows, start at column zero, not -1.
parent
1c3f23ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dialog_fp_lib_table.cpp
pcbnew/dialogs/dialog_fp_lib_table.cpp
+7
-6
No files found.
pcbnew/dialogs/dialog_fp_lib_table.cpp
View file @
58623062
...
@@ -251,14 +251,14 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
...
@@ -251,14 +251,14 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
int
selRowCount
;
int
selRowCount
;
int
selColCount
;
int
selColCount
;
int
getCursor
Row
()
const
int
getCursor
Col
()
const
{
{
return
m_cur_grid
->
GetGridCursor
Row
();
return
m_cur_grid
->
GetGridCursor
Col
();
}
}
int
getCursor
Col
()
const
int
getCursor
Row
()
const
{
{
return
m_cur_grid
->
GetGridCursor
Col
();
return
m_cur_grid
->
GetGridCursor
Row
();
}
}
/// Gets the selected area into a sensible rectangle of sel{Row,Col}{Start,Count} above.
/// Gets the selected area into a sensible rectangle of sel{Row,Col}{Start,Count} above.
...
@@ -893,8 +893,9 @@ void DIALOG_FP_LIB_TABLE::paste()
...
@@ -893,8 +893,9 @@ void DIALOG_FP_LIB_TABLE::paste()
}
}
else
else
{
{
const
int
cur_row
=
getCursorRow
();
const
int
cur_row
=
getCursorRow
();
// -1 is ok
const
int
cur_col
=
getCursorCol
();
const
int
cur_col
=
std
::
max
(
getCursorCol
(),
0
);
// no -1
wxStringTokenizer
rows
(
cb_text
,
ROW_SEP
,
wxTOKEN_RET_EMPTY
);
wxStringTokenizer
rows
(
cb_text
,
ROW_SEP
,
wxTOKEN_RET_EMPTY
);
// if clipboard rows would extend past end of current table size...
// if clipboard rows would extend past end of current table 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