From 8d1d37beb0665b9d6ccaad64e1f8f142070f0968 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 20 Sep 2017 16:14:23 +0200 Subject: [PATCH] Refinements in pad properties dialog --- pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp | 4 ++-- pcbnew/dialogs/dialog_pad_properties.cpp | 2 +- pcbnew/dialogs/dialog_pad_properties.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp b/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp index 197b2388a2..8f6a59f29c 100644 --- a/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_basicshapes_properties.cpp @@ -498,8 +498,8 @@ DIALOG_PAD_PRIMITIVES_TRANSFORM::DIALOG_PAD_PRIMITIVES_TRANSFORM( if( !aShowDuplicate ) // means no duplicate transform { - m_staticTextDupCnt->Enable( false ); - m_spinCtrlDuplicateCount->Enable( false ); + m_staticTextDupCnt->Show( false ); + m_spinCtrlDuplicateCount->Show( false ); } m_sdbSizerOK->SetDefault(); diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index c9c35ffe76..2a1dbcb20d 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -1867,7 +1867,7 @@ void DIALOG_PAD_PROPERTIES::onGeometryTransform( wxCommandEvent& event ) shapeList.push_back( &m_primitives[select] ); } - DIALOG_PAD_PRIMITIVES_TRANSFORM dlg( this, shapeList ); + DIALOG_PAD_PRIMITIVES_TRANSFORM dlg( this, shapeList, false ); if( dlg.ShowModal() != wxID_OK ) return; diff --git a/pcbnew/dialogs/dialog_pad_properties.h b/pcbnew/dialogs/dialog_pad_properties.h index a1da50f470..875b8b7af1 100644 --- a/pcbnew/dialogs/dialog_pad_properties.h +++ b/pcbnew/dialogs/dialog_pad_properties.h @@ -236,7 +236,7 @@ class DIALOG_PAD_PRIMITIVES_TRANSFORM : public DIALOG_PAD_PRIMITIVES_TRANSFORM_B { public: DIALOG_PAD_PRIMITIVES_TRANSFORM( wxWindow* aParent, - std::vector& aList, bool aShowDuplicate = false ); + std::vector& aList, bool aShowDuplicate ); /** * Apply geometric transform (rotation, move, scale) defined in dialog