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
71a40b0d
Commit
71a40b0d
authored
Jul 24, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Very minor code cleaning
parent
eaea2ea1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
14 deletions
+2
-14
basicframe.cpp
common/basicframe.cpp
+0
-7
class_page_info.cpp
common/class_page_info.cpp
+2
-6
title_block_shapes.cpp
common/page_layout/title_block_shapes.cpp
+0
-1
No files found.
common/basicframe.cpp
View file @
71a40b0d
...
...
@@ -509,13 +509,6 @@ void EDA_BASE_FRAME::CopyVersionInfoToClipboard( wxCommandEvent& event )
tmp
<<
wxT
(
"OFF
\n
"
);
#endif
tmp
<<
wxT
(
" KICAD_GOST="
);
#ifdef KICAD_GOST
tmp
<<
wxT
(
"ON
\n
"
);
#else
tmp
<<
wxT
(
"OFF
\n
"
);
#endif
tmp
<<
wxT
(
" USE_WX_GRAPHICS_CONTEXT="
);
#ifdef USE_WX_GRAPHICS_CONTEXT
tmp
<<
wxT
(
"ON
\n
"
);
...
...
common/class_page_info.cpp
View file @
71a40b0d
...
...
@@ -63,7 +63,6 @@ const wxString PAGE_INFO::Custom( wxT( "User" ) );
#define MMsize( x, y ) wxSize( Mm2mils( x ), Mm2mils( y ) )
// All MUST be defined as landscape.
// If IsGOST() is true, A4 is dynamically rotated later.
const
PAGE_INFO
PAGE_INFO
::
pageA4
(
MMsize
(
297
,
210
),
wxT
(
"A4"
),
wxPAPER_A4
);
const
PAGE_INFO
PAGE_INFO
::
pageA3
(
MMsize
(
420
,
297
),
wxT
(
"A3"
),
wxPAPER_A3
);
const
PAGE_INFO
PAGE_INFO
::
pageA2
(
MMsize
(
594
,
420
),
wxT
(
"A2"
),
wxPAPER_A2
);
...
...
@@ -127,16 +126,13 @@ inline void PAGE_INFO::updatePortrait()
PAGE_INFO
::
PAGE_INFO
(
const
wxSize
&
aSizeMils
,
const
wxString
&
aType
,
wxPaperSize
aPaperId
)
:
m_type
(
aType
),
m_size
(
aSizeMils
),
m_paper_id
(
aPaperId
)
m_type
(
aType
),
m_size
(
aSizeMils
),
m_paper_id
(
aPaperId
)
{
updatePortrait
();
// This constructor is protected, and only used by const PAGE_INFO's known
// only to class implementation, so no further changes to "this" object are
// expected. Therefore we should also setMargin() again when copying this
// object in SetType() so that a runtime IsGOST() change does not break.
// expected.
}
...
...
common/page_layout/title_block_shapes.cpp
View file @
71a40b0d
...
...
@@ -85,7 +85,6 @@ void WS_DRAW_ITEM_LIST::BuildWorkSheetGraphicList(
#endif
#define milsTomm (25.4/1000)
#define mmTomils (1000/25.4)
m_titleBlock
=
&
aTitleBlock
;
m_paperFormat
=
&
aPageInfo
.
GetType
();
...
...
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