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
3f5c3d43
Commit
3f5c3d43
authored
Feb 03, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes (fix cvpcb build issue, wx2.8 compatibility, some other stuff).
parent
0c67e26e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
CMakeLists.txt
common/CMakeLists.txt
+1
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+0
-1
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+1
-2
pcb_parser.cpp
pcbnew/pcb_parser.cpp
+3
-3
pns_router.cpp
pcbnew/router/pns_router.cpp
+0
-1
No files found.
common/CMakeLists.txt
View file @
3f5c3d43
...
@@ -219,6 +219,7 @@ set( PCB_COMMON_SRCS
...
@@ -219,6 +219,7 @@ set( PCB_COMMON_SRCS
../pcbnew/class_zone.cpp
../pcbnew/class_zone.cpp
../pcbnew/class_zone_settings.cpp
../pcbnew/class_zone_settings.cpp
../pcbnew/classpcb.cpp
../pcbnew/classpcb.cpp
../pcbnew/ratsnest_data.cpp
../pcbnew/collectors.cpp
../pcbnew/collectors.cpp
../pcbnew/netlist_reader.cpp
../pcbnew/netlist_reader.cpp
../pcbnew/legacy_netlist_reader.cpp
../pcbnew/legacy_netlist_reader.cpp
...
...
pcbnew/CMakeLists.txt
View file @
3f5c3d43
...
@@ -221,7 +221,6 @@ set( PCBNEW_CLASS_SRCS
...
@@ -221,7 +221,6 @@ set( PCBNEW_CLASS_SRCS
print_board_functions.cpp
print_board_functions.cpp
printout_controler.cpp
printout_controler.cpp
ratsnest.cpp
ratsnest.cpp
ratsnest_data.cpp
ratsnest_viewitem.cpp
ratsnest_viewitem.cpp
# specctra.cpp #moved in pcbcommon lib
# specctra.cpp #moved in pcbcommon lib
# specctra_export.cpp
# specctra_export.cpp
...
...
pcbnew/pcb_painter.cpp
View file @
3f5c3d43
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include <class_marker_pcb.h>
#include <class_marker_pcb.h>
#include <class_dimension.h>
#include <class_dimension.h>
#include <class_mire.h>
#include <class_mire.h>
#include <class_netinfo.h>
#include <pcbstruct.h>
#include <pcbstruct.h>
#include <view/view.h>
#include <view/view.h>
...
@@ -281,7 +280,7 @@ void PCB_PAINTER::draw( const TRACK* aTrack, int aLayer )
...
@@ -281,7 +280,7 @@ void PCB_PAINTER::draw( const TRACK* aTrack, int aLayer )
if
(
!
net
)
if
(
!
net
)
return
;
return
;
std
::
wstring
netName
=
std
::
wstring
(
net
->
GetShortNetname
().
wc_str
()
);
const
wxString
&
netName
=
aTrack
->
GetShortNetname
(
);
VECTOR2D
textPosition
=
start
+
line
/
2.0
;
// center of the track
VECTOR2D
textPosition
=
start
+
line
/
2.0
;
// center of the track
double
textOrientation
=
-
atan
(
line
.
y
/
line
.
x
);
double
textOrientation
=
-
atan
(
line
.
y
/
line
.
x
);
double
textSize
=
std
::
min
(
static_cast
<
double
>
(
width
),
length
/
netName
.
length
()
);
double
textSize
=
std
::
min
(
static_cast
<
double
>
(
width
),
length
/
netName
.
length
()
);
...
...
pcbnew/pcb_parser.cpp
View file @
3f5c3d43
...
@@ -2426,9 +2426,9 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR )
...
@@ -2426,9 +2426,9 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR )
NeedSYMBOLorNUMBER
();
NeedSYMBOLorNUMBER
();
if
(
m_board
->
FindNet
(
zone
->
GetNet
()
)
->
GetNetname
()
!=
FromUTF8
()
)
if
(
m_board
->
FindNet
(
zone
->
GetNet
()
)
->
GetNetname
()
!=
FromUTF8
()
)
{
{
DisplayError
(
NULL
,
wxString
::
Format
(
_
(
"There is a zone that belongs to a not "
wxString
msg
=
_
(
"There is a zone that belongs to a not "
"existing net (%s), you should verify it."
),
"existing net ("
)
+
FromUTF8
()
+
_
(
"), you should verify it."
);
FromUTF8
()
)
);
DisplayError
(
NULL
,
msg
);
zone
->
SetNet
(
NETINFO_LIST
::
UNCONNECTED
);
zone
->
SetNet
(
NETINFO_LIST
::
UNCONNECTED
);
}
}
NeedRIGHT
();
NeedRIGHT
();
...
...
pcbnew/router/pns_router.cpp
View file @
3f5c3d43
...
@@ -631,7 +631,6 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
...
@@ -631,7 +631,6 @@ void PNS_ROUTER::commitRouting( PNS_NODE* aNode )
newBI
->
ClearFlags
();
newBI
->
ClearFlags
();
m_view
->
Add
(
newBI
);
m_view
->
Add
(
newBI
);
m_board
->
Add
(
newBI
);
m_board
->
Add
(
newBI
);
m_board
->
GetRatsnest
()
->
Update
(
newBI
);
m_undoBuffer
.
PushItem
(
ITEM_PICKER
(
newBI
,
UR_NEW
)
);
m_undoBuffer
.
PushItem
(
ITEM_PICKER
(
newBI
,
UR_NEW
)
);
newBI
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
newBI
->
ViewUpdate
(
KIGFX
::
VIEW_ITEM
::
GEOMETRY
);
}
}
...
...
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