Another attempt to fix build failure.

This commit is contained in:
Jeff Young 2019-06-04 16:26:45 +01:00
parent e3c1235572
commit 0ea75cb4e7
2 changed files with 5 additions and 3 deletions

View File

@ -587,7 +587,10 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
onBoardLoaded();
// Refresh the 3D view, if any
Update3DView( false );
EDA_3D_VIEWER* draw3DFrame = Get3DViewerFrame();
if( draw3DFrame )
draw3DFrame->NewDisplay();
#if 0 && defined(DEBUG)
// Output the board object tree to stdout, but please run from command prompt:

View File

@ -114,8 +114,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
EDA_3D_VIEWER* PCB_BASE_FRAME::Get3DViewerFrame()
{
// 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 ) );
return dynamic_cast<EDA_3D_VIEWER*>( FindWindow( VIEWER3D_FRAMENAME ) );
}