refactoring: remove link-time dependency between PCB_BASE_FRAME and EDA_3D_VIEWER

This commit is contained in:
Tomasz Włostowski 2017-10-31 12:02:41 +01:00
parent 781008bfa5
commit ec61a00371
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
EDA_3D_VIEWER* PCB_BASE_FRAME::Get3DViewerFrame()
{
// return the 3D viewer frame, when exists, or NULL
return dynamic_cast<EDA_3D_VIEWER*>
return static_cast<EDA_3D_VIEWER*>
( wxWindow::FindWindowByName( VIEWER3D_FRAMENAME ) );
}