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
9e7cbed8
Commit
9e7cbed8
authored
May 16, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compil issues with gcc 4.6 and boost 1.49
parent
879f85aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
class_libentry.cpp
eeschema/class_libentry.cpp
+8
-3
No files found.
eeschema/class_libentry.cpp
View file @
9e7cbed8
...
@@ -968,8 +968,10 @@ EDA_RECT LIB_COMPONENT::GetBoundingBox( int aUnit, int aConvert ) const
...
@@ -968,8 +968,10 @@ EDA_RECT LIB_COMPONENT::GetBoundingBox( int aUnit, int aConvert ) const
{
{
EDA_RECT
bBox
(
wxPoint
(
0
,
0
),
wxSize
(
0
,
0
)
);
EDA_RECT
bBox
(
wxPoint
(
0
,
0
),
wxSize
(
0
,
0
)
);
BOOST_FOREACH
(
const
LIB_ITEM
&
item
,
drawings
)
for
(
unsigned
ii
=
0
;
ii
<
drawings
.
size
();
ii
++
)
{
{
const
LIB_ITEM
&
item
=
drawings
[
ii
];
if
(
(
item
.
m_Unit
>
0
)
&&
(
(
m_unitCount
>
1
)
&&
(
aUnit
>
0
)
if
(
(
item
.
m_Unit
>
0
)
&&
(
(
m_unitCount
>
1
)
&&
(
aUnit
>
0
)
&&
(
aUnit
!=
item
.
m_Unit
)
)
)
&&
(
aUnit
!=
item
.
m_Unit
)
)
)
continue
;
continue
;
...
@@ -991,8 +993,10 @@ EDA_RECT LIB_COMPONENT::GetBodyBoundingBox( int aUnit, int aConvert ) const
...
@@ -991,8 +993,10 @@ EDA_RECT LIB_COMPONENT::GetBodyBoundingBox( int aUnit, int aConvert ) const
{
{
EDA_RECT
bBox
(
wxPoint
(
0
,
0
),
wxSize
(
0
,
0
)
);
EDA_RECT
bBox
(
wxPoint
(
0
,
0
),
wxSize
(
0
,
0
)
);
BOOST_FOREACH
(
const
LIB_ITEM
&
item
,
drawings
)
for
(
unsigned
ii
=
0
;
ii
<
drawings
.
size
();
ii
++
)
{
{
const
LIB_ITEM
&
item
=
drawings
[
ii
];
if
(
(
item
.
m_Unit
>
0
)
&&
(
(
m_unitCount
>
1
)
&&
(
aUnit
>
0
)
if
(
(
item
.
m_Unit
>
0
)
&&
(
(
m_unitCount
>
1
)
&&
(
aUnit
>
0
)
&&
(
aUnit
!=
item
.
m_Unit
)
)
)
&&
(
aUnit
!=
item
.
m_Unit
)
)
)
continue
;
continue
;
...
@@ -1187,8 +1191,9 @@ void LIB_COMPONENT::RemoveDuplicateDrawItems()
...
@@ -1187,8 +1191,9 @@ void LIB_COMPONENT::RemoveDuplicateDrawItems()
bool
LIB_COMPONENT
::
HasConversion
()
const
bool
LIB_COMPONENT
::
HasConversion
()
const
{
{
BOOST_FOREACH
(
const
LIB_ITEM
&
item
,
drawings
)
for
(
unsigned
ii
=
0
;
ii
<
drawings
.
size
();
ii
++
)
{
{
const
LIB_ITEM
&
item
=
drawings
[
ii
];
if
(
item
.
m_Convert
>
1
)
if
(
item
.
m_Convert
>
1
)
return
true
;
return
true
;
}
}
...
...
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