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
ec1d2128
Commit
ec1d2128
authored
Mar 30, 2015
by
Chris Pavlina
Committed by
Maciej Suminski
Mar 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: Avoid rendering component preview if either dimension is 0 (eeschema).
parent
6aff7466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dialog_choose_component.cpp
eeschema/dialogs/dialog_choose_component.cpp
+7
-0
No files found.
eeschema/dialogs/dialog_choose_component.cpp
View file @
ec1d2128
...
@@ -346,6 +346,13 @@ void DIALOG_CHOOSE_COMPONENT::renderPreview( LIB_PART* aComponent, int aUnit )
...
@@ -346,6 +346,13 @@ void DIALOG_CHOOSE_COMPONENT::renderPreview( LIB_PART* aComponent, int aUnit )
NEGATE
(
offset
.
x
);
NEGATE
(
offset
.
x
);
NEGATE
(
offset
.
y
);
NEGATE
(
offset
.
y
);
// Avoid rendering when either dimension is zero
int
width
,
height
;
dc
.
GetSize
(
&
width
,
&
height
);
if
(
!
width
||
!
height
)
return
;
aComponent
->
Draw
(
NULL
,
&
dc
,
offset
,
aUnit
,
m_deMorganConvert
,
GR_COPY
,
aComponent
->
Draw
(
NULL
,
&
dc
,
offset
,
aUnit
,
m_deMorganConvert
,
GR_COPY
,
UNSPECIFIED_COLOR
,
DefaultTransform
,
true
,
true
,
false
);
UNSPECIFIED_COLOR
,
DefaultTransform
,
true
,
true
,
false
);
}
}
...
...
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