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
b74db435
Commit
b74db435
authored
Apr 29, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary casts
parent
e7ece9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
edit.cpp
pcbnew/edit.cpp
+5
-5
No files found.
pcbnew/edit.cpp
View file @
b74db435
...
@@ -1087,7 +1087,7 @@ void WinEDA_PcbFrame::RemoveStruct( BOARD_ITEM* Item, wxDC* DC )
...
@@ -1087,7 +1087,7 @@ void WinEDA_PcbFrame::RemoveStruct( BOARD_ITEM* Item, wxDC* DC )
void
WinEDA_PcbFrame
::
SwitchLayer
(
wxDC
*
DC
,
int
layer
)
void
WinEDA_PcbFrame
::
SwitchLayer
(
wxDC
*
DC
,
int
layer
)
/*****************************************************************/
/*****************************************************************/
{
{
int
preslayer
=
((
PCB_SCREEN
*
)
GetScreen
()
)
->
m_Active_Layer
;
int
preslayer
=
GetScreen
(
)
->
m_Active_Layer
;
// Check if the specified layer matches the present layer
// Check if the specified layer matches the present layer
if
(
layer
==
preslayer
)
if
(
layer
==
preslayer
)
...
@@ -1140,9 +1140,9 @@ void WinEDA_PcbFrame::SwitchLayer( wxDC* DC, int layer )
...
@@ -1140,9 +1140,9 @@ void WinEDA_PcbFrame::SwitchLayer( wxDC* DC, int layer )
// Want to set the routing layers so that it switches properly -
// Want to set the routing layers so that it switches properly -
// see the implementation of Other_Layer_Route - the working
// see the implementation of Other_Layer_Route - the working
// layer is used to 'start' the via and set the layer masks appropriately.
// layer is used to 'start' the via and set the layer masks appropriately.
((
PCB_SCREEN
*
)
GetScreen
()
)
->
m_Route_Layer_TOP
=
preslayer
;
GetScreen
(
)
->
m_Route_Layer_TOP
=
preslayer
;
((
PCB_SCREEN
*
)
GetScreen
()
)
->
m_Route_Layer_BOTTOM
=
layer
;
GetScreen
(
)
->
m_Route_Layer_BOTTOM
=
layer
;
((
PCB_SCREEN
*
)
GetScreen
()
)
->
m_Active_Layer
=
preslayer
;
GetScreen
(
)
->
m_Active_Layer
=
preslayer
;
if
(
Other_Layer_Route
(
(
TRACK
*
)
GetScreen
()
->
GetCurItem
(),
DC
)
)
if
(
Other_Layer_Route
(
(
TRACK
*
)
GetScreen
()
->
GetCurItem
(),
DC
)
)
{
{
...
@@ -1163,7 +1163,7 @@ void WinEDA_PcbFrame::SwitchLayer( wxDC* DC, int layer )
...
@@ -1163,7 +1163,7 @@ void WinEDA_PcbFrame::SwitchLayer( wxDC* DC, int layer )
// and a non-copper layer, or vice-versa?
// and a non-copper layer, or vice-versa?
// ...
// ...
((
PCB_SCREEN
*
)
GetScreen
()
)
->
m_Active_Layer
=
layer
;
GetScreen
(
)
->
m_Active_Layer
=
layer
;
if
(
DisplayOpt
.
ContrastModeDisplay
)
if
(
DisplayOpt
.
ContrastModeDisplay
)
GetScreen
()
->
SetRefreshReq
();
GetScreen
()
->
SetRefreshReq
();
...
...
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