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
34b645da
Commit
34b645da
authored
Jul 31, 2014
by
Michael Narigon
Committed by
Dick Hollenbeck
Jul 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings
parent
3aa390b5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
class_footprints_listbox.cpp
cvpcb/class_footprints_listbox.cpp
+6
-4
class_library_listbox.cpp
cvpcb/class_library_listbox.cpp
+6
-4
datafile_read_write.h
pcb_calculator/datafile_read_write.h
+1
-1
modview_frame.cpp
pcbnew/modview_frame.cpp
+2
-2
No files found.
cvpcb/class_footprints_listbox.cpp
View file @
34b645da
...
...
@@ -60,11 +60,13 @@ int FOOTPRINTS_LISTBOX::GetCount()
void
FOOTPRINTS_LISTBOX
::
SetString
(
unsigned
linecount
,
const
wxString
&
text
)
{
if
(
linecount
>=
m_footprintList
.
Count
()
)
linecount
=
m_footprintList
.
Count
()
-
1
;
if
(
linecount
>=
0
)
unsigned
count
=
m_footprintList
.
Count
();
if
(
count
>
0
)
{
if
(
linecount
>=
count
)
linecount
=
count
-
1
;
m_footprintList
[
linecount
]
=
text
;
}
}
...
...
cvpcb/class_library_listbox.cpp
View file @
34b645da
...
...
@@ -60,11 +60,13 @@ int LIBRARY_LISTBOX::GetCount()
void
LIBRARY_LISTBOX
::
SetString
(
unsigned
linecount
,
const
wxString
&
text
)
{
if
(
linecount
>=
m_libraryList
.
Count
()
)
linecount
=
m_libraryList
.
Count
()
-
1
;
if
(
linecount
>=
0
)
unsigned
count
=
m_libraryList
.
Count
();
if
(
count
>
0
)
{
if
(
linecount
>=
count
)
linecount
=
count
-
1
;
m_libraryList
[
linecount
]
=
text
;
}
}
...
...
pcb_calculator/datafile_read_write.h
View file @
34b645da
#ifndef DATAFILE_READ_WRITE_H_
#define
P
DATAFILE_READ_WRITE_H_
#define DATAFILE_READ_WRITE_H_
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
...
...
pcbnew/modview_frame.cpp
View file @
34b645da
...
...
@@ -713,8 +713,8 @@ void FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList( wxCommandEvent& event )
break
;
default
:
wx
FAIL_MSG
(
wxT
(
"FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = "
)
+
event
.
GetId
()
);
wx
String
id
=
wxString
::
Format
(
wxT
(
"%i"
),
event
.
GetId
());
wxFAIL_MSG
(
wxT
(
"FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = "
)
+
id
);
}
}
...
...
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