From 90818afedd2c8cb6eb712666e0ffcb2b979ad15d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 26 Dec 2017 20:46:52 +0100 Subject: [PATCH] Try to fix: pad editor: incorrect zoom scale of pad preview on some installs. Fixes: lp:1670086 https://bugs.launchpad.net/kicad/+bug/1670086 --- pcbnew/dialogs/dialog_pad_properties.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index 8f24e9e17c..ffef33faa3 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -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(); }