Make sure ratsnest gets redrawn when enabled

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5335
This commit is contained in:
Jon Evans 2020-08-23 16:45:33 -04:00
parent 49ac89f72c
commit 63fb6d49e0
1 changed files with 1 additions and 0 deletions

View File

@ -1414,6 +1414,7 @@ void APPEARANCE_CONTROLS::onObjectVisibilityChanged( GAL_LAYER_ID aLayer, bool i
PCB_DISPLAY_OPTIONS opt = m_frame->GetDisplayOptions();
opt.m_ShowGlobalRatsnest = isVisible;
m_frame->SetDisplayOptions( opt );
m_frame->GetCanvas()->RedrawRatsnest();
}
break;