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
416c4461
Commit
416c4461
authored
Oct 30, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leak, comments
parent
c1ec14bc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
fp_lib_table.cpp
common/fp_lib_table.cpp
+8
-6
dialog_fp_plugin_options.cpp
pcbnew/dialogs/dialog_fp_plugin_options.cpp
+5
-2
kicad-install.sh
scripts/kicad-install.sh
+0
-1
No files found.
common/fp_lib_table.cpp
View file @
416c4461
...
@@ -388,6 +388,7 @@ std::string FP_LIB_TABLE::FormatOptions( const PROPERTIES* aProperties )
...
@@ -388,6 +388,7 @@ std::string FP_LIB_TABLE::FormatOptions( const PROPERTIES* aProperties )
// the separation between name and value is '='
// the separation between name and value is '='
if
(
value
.
size
()
)
if
(
value
.
size
()
)
{
ret
+=
'='
;
ret
+=
'='
;
for
(
std
::
string
::
const_iterator
si
=
value
.
begin
();
si
!=
value
.
end
();
++
si
)
for
(
std
::
string
::
const_iterator
si
=
value
.
begin
();
si
!=
value
.
end
();
++
si
)
...
@@ -400,6 +401,7 @@ std::string FP_LIB_TABLE::FormatOptions( const PROPERTIES* aProperties )
...
@@ -400,6 +401,7 @@ std::string FP_LIB_TABLE::FormatOptions( const PROPERTIES* aProperties )
}
}
}
}
}
}
}
return
ret
;
return
ret
;
}
}
...
...
pcbnew/dialogs/dialog_fp_plugin_options.cpp
View file @
416c4461
...
@@ -51,7 +51,7 @@ public:
...
@@ -51,7 +51,7 @@ public:
SetTitle
(
title
);
SetTitle
(
title
);
// add Cut, Copy, and Paste to wxGrid
s
// add Cut, Copy, and Paste to wxGrid
m_grid
->
PushEventHandler
(
new
GRID_TRICKS
(
m_grid
)
);
m_grid
->
PushEventHandler
(
new
GRID_TRICKS
(
m_grid
)
);
string
options
=
TO_UTF8
(
aOptions
);
string
options
=
TO_UTF8
(
aOptions
);
...
@@ -60,7 +60,8 @@ public:
...
@@ -60,7 +60,8 @@ public:
if
(
props
)
if
(
props
)
{
{
m_grid
->
AppendRows
(
props
->
size
()
);
if
(
props
->
size
()
>
m_grid
->
GetNumberRows
()
)
m_grid
->
AppendRows
(
props
->
size
()
-
m_grid
->
GetNumberRows
()
);
int
row
=
0
;
int
row
=
0
;
for
(
PROPERTIES
::
const_iterator
it
=
props
->
begin
();
it
!=
props
->
end
();
++
it
,
++
row
)
for
(
PROPERTIES
::
const_iterator
it
=
props
->
begin
();
it
!=
props
->
end
();
++
it
,
++
row
)
...
@@ -68,6 +69,8 @@ public:
...
@@ -68,6 +69,8 @@ public:
m_grid
->
SetCellValue
(
row
,
0
,
FROM_UTF8
(
it
->
first
.
c_str
()
)
);
m_grid
->
SetCellValue
(
row
,
0
,
FROM_UTF8
(
it
->
first
.
c_str
()
)
);
m_grid
->
SetCellValue
(
row
,
1
,
FROM_UTF8
(
it
->
second
.
c_str
()
)
);
m_grid
->
SetCellValue
(
row
,
1
,
FROM_UTF8
(
it
->
second
.
c_str
()
)
);
}
}
delete
props
;
}
}
if
(
!
col_width_option
)
if
(
!
col_width_option
)
...
...
scripts/kicad-install.sh
View file @
416c4461
...
@@ -188,7 +188,6 @@ install_or_update()
...
@@ -188,7 +188,6 @@ install_or_update()
if
[
$#
-eq
1
-a
"
$1
"
==
"--remove-sources"
]
;
then
if
[
$#
-eq
1
-a
"
$1
"
==
"--remove-sources"
]
;
then
# run this only once, kills .config & makes dirs
echo
"deleting
$WORKING_TREES
"
echo
"deleting
$WORKING_TREES
"
rm_build_dir
"
$WORKING_TREES
/kicad.bzr/build"
rm_build_dir
"
$WORKING_TREES
/kicad.bzr/build"
rm_build_dir
"
$WORKING_TREES
/kicad-lib.bzr/build"
rm_build_dir
"
$WORKING_TREES
/kicad-lib.bzr/build"
...
...
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