Eechema, Component editor: Fix a bug in Pin properties dialog: a parameter used to draw the pin in preview canvas was incorrect, due to code change in draw pin.

This commit is contained in:
jean-pierre charras 2016-05-19 18:38:36 +02:00
parent 74611440b5
commit e2d4118470
2 changed files with 6 additions and 4 deletions

View File

@ -98,10 +98,12 @@ void DIALOG_LIB_EDIT_PIN::OnPaintShowPanel( wxPaintEvent& event )
wxPoint offset = -bBox.Centre();
GRResetPenAndBrush( &dc );
bool drawpinTexts = true; // this is a dummy param. We use its reference
// as non null value for m_dummyPin->Draw
// This is a flag for m_dummyPin->Draw
uintptr_t flags = uintptr_t( PIN_DRAW_TEXTS | PIN_DRAW_DANGLING );
m_dummyPin->Draw( NULL, &dc, offset, UNSPECIFIED_COLOR, GR_COPY,
&drawpinTexts, DefaultTransform );
(void*)flags, DefaultTransform );
m_dummyPin->SetParent(NULL);

View File

@ -612,7 +612,7 @@ void DIALOG_PAD_PROPERTIES::OnPadShapeSelection( wxCommandEvent& event )
}
// A few widgets are enabled only for rounded rect pads:
m_tcCornerSizeRatio->Enable( m_PadShape->GetSelection() == CHOICE_SHAPE_ROUNDRECT );
m_tcCornerSizeRatio->Enable( m_PadShape->GetSelection() == CHOICE_SHAPE_ROUNDRECT );
transferDataToPad( m_dummyPad );