Fix link issue with qa_pcbnew test.

I'm not terribly happy about the solution as it's a bit less safe.
But it's what we had before.
This commit is contained in:
Jeff Young 2019-06-04 15:09:18 +01:00
parent dfcffddbe4
commit e3c1235572
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
EDA_3D_VIEWER* PCB_BASE_FRAME::Get3DViewerFrame()
{
return dynamic_cast<EDA_3D_VIEWER*>( FindWindow( VIEWER3D_FRAMENAME ) );
// Even though less safe, this has to be a static_cast so the qa tools will link.
return static_cast<EDA_3D_VIEWER*>( FindWindow( VIEWER3D_FRAMENAME ) );
}