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
54c20b57
Commit
54c20b57
authored
Jan 10, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Main issue catch! wxPen with size 0 draws NOTHING (8 months to spot it)
parent
0404ddae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gr_basic.cpp
common/gr_basic.cpp
+6
-0
No files found.
common/gr_basic.cpp
View file @
54c20b57
...
@@ -357,6 +357,12 @@ void GRSetColorPen( wxDC* DC, int Color, int width, wxPenStyle style )
...
@@ -357,6 +357,12 @@ void GRSetColorPen( wxDC* DC, int Color, int width, wxPenStyle style )
if
(
width
<
0
)
if
(
width
<
0
)
width
=
0
;
width
=
0
;
#ifdef __WXMAC__
// Under OSX when wxPen is set to 0, cocoa follows the request drawing nothing
if
(
width
==
0
)
width
=
DC
->
DeviceToLogicalXRel
(
1
);
#endif
if
(
s_ForceBlackPen
)
if
(
s_ForceBlackPen
)
{
{
Color
=
BLACK
;
Color
=
BLACK
;
...
...
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