Fixed random color of worksheet border.

This commit is contained in:
Maciej Suminski 2013-09-17 14:46:48 +02:00
parent 300c066b68
commit 3f6fa86190
1 changed files with 3 additions and 3 deletions

View File

@ -97,9 +97,6 @@ void WORKSHEET_ITEM::ViewDraw( int aLayer, GAL* aGal ) const
EDA_COLOR_T edaColor = ColorFindNearest( color.r * 255, color.g * 255, color.b * 255 );
drawList.BuildWorkSheetGraphicList( *m_pageInfo, *m_titleBlock, edaColor, edaColor );
// Draw gray line that outlines the sheet size
drawBorder( aGal );
// Draw all the components that make the page layout
WS_DRAW_ITEM_BASE* item = drawList.GetFirst();
while( item )
@ -125,6 +122,9 @@ void WORKSHEET_ITEM::ViewDraw( int aLayer, GAL* aGal ) const
item = drawList.GetNext();
}
// Draw gray line that outlines the sheet size
drawBorder( aGal );
}