← Back to team overview

kicad-developers team mailing list archive

Buglet in eeschema drawing

 

... which remember us all that overloaded functions and a
not-so-strong type system (i.e. a color is an int) don't mix well :P

Index: classes_body_items.cpp
===================================================================
--- classes_body_items.cpp (revision 1414)
+++ classes_body_items.cpp (working copy)
@@ -195,11 +195,11 @@
 
if( fill == FILLED_WITH_BG_BODYCOLOR && !aData )
GRFilledRect( &aPanel->m_ClipBox, aDC, pos1.x, pos1.y,
pos2.x, pos2.y,
- color, linewidth,
+ linewidth, color,
ReturnLayerColor( LAYER_DEVICE_BACKGROUND ) );
else if( m_Fill == FILLED_SHAPE && !aData )
GRFilledRect( &aPanel->m_ClipBox, aDC, pos1.x, pos1.y,
pos2.x, pos2.y,
- color, color );
+ linewidth, color, color );
else
GRRect( &aPanel->m_ClipBox, aDC, pos1.x, pos1.y, pos2.x, pos2.y,
linewidth, color );