TOOL_SETTINGS::TOOL_SETTINGS( TOOL_BASE* aTool ) { m_tool = aTool; if( !aTool ) { m_config = NULL; return; } // fixme: make independent of pcbnew (post-stable) PCB_EDIT_FRAME* frame = aTool->getEditFrame<PCB_EDIT_FRAME>(); m_config = frame->GetSettings(); }