Another attempt to fix build failure.
This commit is contained in:
parent
e3c1235572
commit
0ea75cb4e7
|
@ -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:
|
||||
|
|
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue