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
f3467272
Commit
f3467272
authored
Dec 31, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: only invoke fp-lib-table options editor when table not empty.
parent
bfc72b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
dialog_fp_lib_table.cpp
pcbnew/dialogs/dialog_fp_lib_table.cpp
+18
-15
No files found.
pcbnew/dialogs/dialog_fp_lib_table.cpp
View file @
f3467272
...
@@ -583,28 +583,31 @@ private:
...
@@ -583,28 +583,31 @@ private:
{
{
FP_TBL_MODEL
*
tbl
=
cur_model
();
FP_TBL_MODEL
*
tbl
=
cur_model
();
int
curRow
=
getCursorRow
();
if
(
tbl
->
GetNumberRows
()
)
ROW
&
row
=
tbl
->
rows
[
curRow
];
{
int
curRow
=
getCursorRow
();
ROW
&
row
=
tbl
->
rows
[
curRow
];
wxString
result
;
wxString
result
;
const
wxString
&
options
=
row
.
GetOptions
();
const
wxString
&
options
=
row
.
GetOptions
();
InvokePluginOptionsEditor
(
this
,
row
.
GetNickName
(),
row
.
GetType
(),
options
,
&
result
);
InvokePluginOptionsEditor
(
this
,
row
.
GetNickName
(),
row
.
GetType
(),
options
,
&
result
);
if
(
options
!=
result
)
if
(
options
!=
result
)
{
{
row
.
SetOptions
(
result
);
row
.
SetOptions
(
result
);
// all but options:
// all but options:
m_cur_grid
->
AutoSizeColumn
(
COL_NICKNAME
,
false
);
m_cur_grid
->
AutoSizeColumn
(
COL_NICKNAME
,
false
);
m_cur_grid
->
AutoSizeColumn
(
COL_URI
,
false
);
m_cur_grid
->
AutoSizeColumn
(
COL_URI
,
false
);
m_cur_grid
->
AutoSizeColumn
(
COL_TYPE
,
false
);
m_cur_grid
->
AutoSizeColumn
(
COL_TYPE
,
false
);
// On Windows, the grid is not refresh,
// On Windows, the grid is not refresh,
// so force resfresh after a change
// so force resfresh after a change
#ifdef __WINDOWS__
#ifdef __WINDOWS__
Refresh
();
Refresh
();
#endif
#endif
}
}
}
}
}
...
...
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