Fixed 'disappearing via' issue.

This commit is contained in:
Maciej Suminski 2013-07-08 14:06:45 +02:00
parent 3e140ddcfe
commit 30f19be555
2 changed files with 11 additions and 0 deletions

View File

@ -1001,6 +1001,14 @@ void SEGVIA::ViewGetLayers( int aLayers[], int& aCount ) const
}
void SEGVIA::ViewGetRequiredLayers( int aLayers[], int& aCount ) const
{
// The only required layer is via itself, holes are optional
aLayers[0] = ITEM_GAL_LAYER( VIAS_VISIBLE );
aCount = 1;
}
// see class_track.h
void TRACK::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
{

View File

@ -424,6 +424,9 @@ public:
/// @copydoc VIEW_ITEM::ViewGetLayers()
virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
/// @copydoc VIEW_ITEM::ViewGetRequiredLayers()
virtual void ViewGetRequiredLayers( int aLayers[], int& aCount ) const;
#if defined (DEBUG)
virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
#endif