diff --git a/pcbnew/pcb_base_frame.cpp b/pcbnew/pcb_base_frame.cpp index b04135284f..d46a7c178b 100644 --- a/pcbnew/pcb_base_frame.cpp +++ b/pcbnew/pcb_base_frame.cpp @@ -114,7 +114,8 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME() EDA_3D_VIEWER* PCB_BASE_FRAME::Get3DViewerFrame() { - return dynamic_cast( FindWindow( VIEWER3D_FRAMENAME ) ); + // Even though less safe, this has to be a static_cast so the qa tools will link. + return static_cast( FindWindow( VIEWER3D_FRAMENAME ) ); }