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
75072f43
Commit
75072f43
authored
Dec 21, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend fp_lib_table on multiple row paste
parent
ee48de67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dialog_fp_lib_table.cpp
pcbnew/dialogs/dialog_fp_lib_table.cpp
+7
-0
No files found.
pcbnew/dialogs/dialog_fp_lib_table.cpp
View file @
75072f43
...
@@ -347,6 +347,13 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
...
@@ -347,6 +347,13 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
wxStringTokenizer
rows
(
data
.
GetText
(),
ROW_SEP
,
wxTOKEN_RET_EMPTY
);
wxStringTokenizer
rows
(
data
.
GetText
(),
ROW_SEP
,
wxTOKEN_RET_EMPTY
);
// if clipboard rows would extend paste end of current table size...
if
(
int
(
rows
.
CountTokens
()
)
>
tbl
->
GetNumberRows
()
-
m_cur_row
)
{
int
newRowsNeeded
=
rows
.
CountTokens
()
-
(
tbl
->
GetNumberRows
()
-
m_cur_row
);
tbl
->
AppendRows
(
newRowsNeeded
);
}
for
(
int
row
=
m_cur_row
;
rows
.
HasMoreTokens
();
++
row
)
for
(
int
row
=
m_cur_row
;
rows
.
HasMoreTokens
();
++
row
)
{
{
wxString
rowTxt
=
rows
.
GetNextToken
();
wxString
rowTxt
=
rows
.
GetNextToken
();
...
...
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