Pcbnew: Crash after running external plugin
Happens only in Opengl mode. So enforce controls in 3 group function: DrawGroup, ChangeGroupColor, ChangeGroupDepth. Fixes: lp:1795044 https://bugs.launchpad.net/kicad/+bug/1795044
This commit is contained in:
parent
5843b1a6a1
commit
26838c6800
|
@ -1437,18 +1437,21 @@ void OPENGL_GAL::EndGroup()
|
|||
|
||||
void OPENGL_GAL::DrawGroup( int aGroupNumber )
|
||||
{
|
||||
if( groups[aGroupNumber] )
|
||||
cachedManager->DrawItem( *groups[aGroupNumber] );
|
||||
}
|
||||
|
||||
|
||||
void OPENGL_GAL::ChangeGroupColor( int aGroupNumber, const COLOR4D& aNewColor )
|
||||
{
|
||||
if( groups[aGroupNumber] )
|
||||
cachedManager->ChangeItemColor( *groups[aGroupNumber], aNewColor );
|
||||
}
|
||||
|
||||
|
||||
void OPENGL_GAL::ChangeGroupDepth( int aGroupNumber, int aDepth )
|
||||
{
|
||||
if( groups[aGroupNumber] )
|
||||
cachedManager->ChangeItemDepth( *groups[aGroupNumber], aDepth );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue