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
a20c8928
Commit
a20c8928
authored
Apr 18, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide pageFmts[] since it is no longer NULL terminated and not global
parent
1f3b3d68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
dialog_page_settings.cpp
common/dialogs/dialog_page_settings.cpp
+1
-1
class_pcb_text.cpp
pcbnew/class_pcb_text.cpp
+4
-3
No files found.
common/dialogs/dialog_page_settings.cpp
View file @
a20c8928
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
// the translated and the not translated version.
// the translated and the not translated version.
// when displayed in dialog we should explicitely call wxGetTranslation()
// when displayed in dialog we should explicitely call wxGetTranslation()
// to show the translated version.
// to show the translated version.
const
wxString
pageFmts
[]
=
static
const
wxString
pageFmts
[]
=
{
{
_
(
"A4 210x297mm"
),
_
(
"A4 210x297mm"
),
_
(
"A3 297x420mm"
),
_
(
"A3 297x420mm"
),
...
...
pcbnew/class_pcb_text.cpp
View file @
a20c8928
...
@@ -111,17 +111,18 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
...
@@ -111,17 +111,18 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
void
TEXTE_PCB
::
GetMsgPanelInfo
(
std
::
vector
<
MSG_PANEL_ITEM
>&
aList
)
void
TEXTE_PCB
::
GetMsgPanelInfo
(
std
::
vector
<
MSG_PANEL_ITEM
>&
aList
)
{
{
wxString
msg
;
wxString
msg
;
BOARD
*
board
;
BOARD_ITEM
*
parent
=
(
BOARD_ITEM
*
)
m_Parent
;
#if defined(DEBUG)
BOARD_ITEM
*
parent
=
(
BOARD_ITEM
*
)
m_Parent
;
wxASSERT
(
parent
);
wxASSERT
(
parent
);
BOARD
*
board
;
if
(
parent
->
Type
()
==
PCB_DIMENSION_T
)
if
(
parent
->
Type
()
==
PCB_DIMENSION_T
)
board
=
(
BOARD
*
)
parent
->
GetParent
();
board
=
(
BOARD
*
)
parent
->
GetParent
();
else
else
board
=
(
BOARD
*
)
parent
;
board
=
(
BOARD
*
)
parent
;
wxASSERT
(
board
);
wxASSERT
(
board
);
#endif
if
(
m_Parent
&&
m_Parent
->
Type
()
==
PCB_DIMENSION_T
)
if
(
m_Parent
&&
m_Parent
->
Type
()
==
PCB_DIMENSION_T
)
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Dimension"
),
m_Text
,
DARKGREEN
)
);
aList
.
push_back
(
MSG_PANEL_ITEM
(
_
(
"Dimension"
),
m_Text
,
DARKGREEN
)
);
...
...
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