Commit 3f6fa861 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Fixed random color of worksheet border.

parent 300c066b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 );
}