~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/pcb_painter.cpp

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
bool PCB_PAINTER::Draw( const VIEW_ITEM* aItem, int aLayer )
231
231
{
232
232
    // the "cast" applied in here clarifies which overloaded draw() is called
233
 
    switch( aItem->Type() )
 
233
    switch( static_cast<const BOARD_ITEM*>( aItem )->Type() )
234
234
    {
235
235
    case PCB_ZONE_T:
236
236
    case PCB_TRACE_T: