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
e73e94ed
Commit
e73e94ed
authored
Sep 09, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug plotting pins with circles in them
parent
9fdc316d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
115 deletions
+122
-115
eelibs_draw_components.cpp
eeschema/eelibs_draw_components.cpp
+6
-4
plot.cpp
eeschema/plot.cpp
+111
-108
symbdraw.cpp
eeschema/symbdraw.cpp
+4
-2
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+1
-1
No files found.
eeschema/eelibs_draw_components.cpp
View file @
e73e94ed
...
@@ -418,10 +418,10 @@ void DrawLibPartAux( WinEDA_DrawPanel* panel, wxDC* DC,
...
@@ -418,10 +418,10 @@ void DrawLibPartAux( WinEDA_DrawPanel* panel, wxDC* DC,
{
{
int
i
,
x1
,
y1
,
x2
,
y2
,
t1
,
t2
,
orient
;
int
i
,
x1
,
y1
,
x2
,
y2
,
t1
,
t2
,
orient
;
LibEDA_BaseStruct
*
DEntry
=
NULL
;
LibEDA_BaseStruct
*
DEntry
=
NULL
;
int
CharColor
;
int
CharColor
;
int
fill_option
;
FILL_T
fill_option
;
int
SetHightColor
;
int
SetHightColor
;
int
LineWidth
;
int
LineWidth
;
//#define GETCOLOR(l) Color < 0 ? (ReturnLayerColor(l)| SetHightColor) : Color;
//#define GETCOLOR(l) Color < 0 ? (ReturnLayerColor(l)| SetHightColor) : Color;
#define GETCOLOR( l ) Color < 0 ? SetHightColor ?\
#define GETCOLOR( l ) Color < 0 ? SetHightColor ?\
...
@@ -471,9 +471,11 @@ void DrawLibPartAux( WinEDA_DrawPanel* panel, wxDC* DC,
...
@@ -471,9 +471,11 @@ void DrawLibPartAux( WinEDA_DrawPanel* panel, wxDC* DC,
{
{
EXCHG
(
x1
,
x2
);
EXCHG
(
y1
,
y2
)
EXCHG
(
x1
,
x2
);
EXCHG
(
y1
,
y2
)
}
}
fill_option
=
Arc
->
m_Fill
;
fill_option
=
Arc
->
m_Fill
;
if
(
g_IsPrinting
&&
fill_option
==
FILLED_WITH_BG_BODYCOLOR
&&
GetGRForceBlackPenState
(
)
)
if
(
g_IsPrinting
&&
fill_option
==
FILLED_WITH_BG_BODYCOLOR
&&
GetGRForceBlackPenState
(
)
)
fill_option
=
NO_FILL
;
fill_option
=
NO_FILL
;
if
(
Color
<
0
)
// Normal Color Layer
if
(
Color
<
0
)
// Normal Color Layer
{
{
if
(
fill_option
==
FILLED_WITH_BG_BODYCOLOR
)
if
(
fill_option
==
FILLED_WITH_BG_BODYCOLOR
)
...
...
eeschema/plot.cpp
View file @
e73e94ed
This diff is collapsed.
Click to expand it.
eeschema/symbdraw.cpp
View file @
e73e94ed
...
@@ -27,7 +27,7 @@ static void MoveLibDrawItemAt( LibEDA_BaseStruct* DrawItem, wxPoint newpos );
...
@@ -27,7 +27,7 @@ static void MoveLibDrawItemAt( LibEDA_BaseStruct* DrawItem, wxPoint newpos );
/* Variables locales */
/* Variables locales */
static
int
StateDrawArc
,
ArcStartX
,
ArcStartY
,
ArcEndX
,
ArcEndY
;
static
int
StateDrawArc
,
ArcStartX
,
ArcStartY
,
ArcEndX
,
ArcEndY
;
static
wxPoint
InitPosition
,
StartCursor
,
ItemPreviousPos
;
static
wxPoint
InitPosition
,
StartCursor
,
ItemPreviousPos
;
static
int
FlSymbol_Fill
=
NO_FILL
;
static
FILL_T
FlSymbol_Fill
=
NO_FILL
;
/************************************/
/************************************/
...
@@ -46,8 +46,10 @@ bodygraphics_PropertiesAccept( wxCommandEvent& event )
...
@@ -46,8 +46,10 @@ bodygraphics_PropertiesAccept( wxCommandEvent& event )
{
{
g_FlDrawSpecificConvert
=
m_CommonConvert
->
GetValue
()
?
FALSE
:
TRUE
;
g_FlDrawSpecificConvert
=
m_CommonConvert
->
GetValue
()
?
FALSE
:
TRUE
;
g_FlDrawSpecificUnit
=
m_CommonUnit
->
GetValue
()
?
FALSE
:
TRUE
;
g_FlDrawSpecificUnit
=
m_CommonUnit
->
GetValue
()
?
FALSE
:
TRUE
;
if
(
m_Filled
)
if
(
m_Filled
)
FlSymbol_Fill
=
m_Filled
->
GetSelection
();
FlSymbol_Fill
=
(
FILL_T
)
m_Filled
->
GetSelection
();
g_LibSymbolDefaultLineWidth
=
m_GraphicShapeWidthCtrl
->
GetValue
();
g_LibSymbolDefaultLineWidth
=
m_GraphicShapeWidthCtrl
->
GetValue
();
if
(
CurrentDrawItem
)
if
(
CurrentDrawItem
)
...
...
pcbnew/plot_rtn.cpp
View file @
e73e94ed
...
@@ -791,7 +791,7 @@ void PlotCircle( int format_plot, int thickness, wxPoint centre, int radius )
...
@@ -791,7 +791,7 @@ void PlotCircle( int format_plot, int thickness, wxPoint centre, int radius )
break
;
break
;
case
PLOT_FORMAT_POST
:
case
PLOT_FORMAT_POST
:
PlotCirclePS
(
centre
,
radius
*
2
,
0
,
thickness
);
PlotCirclePS
(
centre
,
radius
*
2
,
false
,
thickness
);
break
;
break
;
}
}
}
}
...
...
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