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
06d37c4b
Commit
06d37c4b
authored
Jul 09, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Crash when changing color under MacOSX. This could also affect all versions.
parent
6bedc7e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
common.cpp
common/common.cpp
+1
-0
selcolor.cpp
common/selcolor.cpp
+1
-1
colors.h
include/colors.h
+1
-1
No files found.
common/common.cpp
View file @
06d37c4b
...
...
@@ -89,6 +89,7 @@ int g_GhostColor;
* Please: if you change a value, remember these values are carefully chosen
* to have good results in pcbnew, that uses the ORed value of basic colors
* when displaying superimposed objects
* The NULL value of the last item can be used as an end of list item
*/
StructColors
ColorRefs
[
NBCOLOR
]
=
{
...
...
common/selcolor.cpp
View file @
06d37c4b
...
...
@@ -98,7 +98,7 @@ WinEDA_SelColorFrame::WinEDA_SelColorFrame( wxWindow* parent,
MainBoxSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
OuterBoxSizer
->
Add
(
MainBoxSizer
,
1
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
for
(
ii
=
0
;
ColorRefs
[
ii
].
m_Name
!=
NULL
;
ii
++
)
for
(
ii
=
0
;
ColorRefs
[
ii
].
m_Name
!=
NULL
&&
ii
<
NBCOLOR
;
ii
++
)
{
// Provide a separate column for every eight buttons (and their
// associated text strings), so provide a FlexGrid Sizer with
...
...
include/colors.h
View file @
06d37c4b
...
...
@@ -82,7 +82,7 @@ struct StructColors
int
m_LightColor
;
};
// list of existing Colors:
extern
StructColors
ColorRefs
[
NBCOLOR
];
/**
...
...
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