Try to fix: pad editor: incorrect zoom scale of pad preview on some installs.

Fixes: lp:1670086
https://bugs.launchpad.net/kicad/+bug/1670086
This commit is contained in:
jean-pierre charras 2017-12-26 20:46:52 +01:00
parent 71ea6dc2b9
commit 90818afedd
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ void DIALOG_PAD_PROPERTIES::OnInitDialog( wxInitDialogEvent& event )
{
m_PadNumCtrl->SetFocus();
m_PadNumCtrl->SetSelection( -1, -1 );
// Needed on some WM to be sure the pad is redrawn according to the final size
// of the canvas, with the right zoom factor
redraw();
}