Libedit: fix a bug in edit graphic item properties:
When changing the common to units and/or common to convert options, the item properties were not updated.
This commit is contained in:
parent
978c4fd7d3
commit
5ed8ba5bf3
File diff suppressed because it is too large
Load Diff
|
@ -409,6 +409,16 @@ void LIB_EDIT_TOOL::editGraphicProperties( LIB_ITEM* aItem )
|
|||
|
||||
aItem->SetWidth( dialog.GetWidth() );
|
||||
|
||||
if( dialog.GetApplyToAllConversions() )
|
||||
aItem->SetConvert( 0 );
|
||||
else
|
||||
aItem->SetConvert( m_frame->GetConvert() );
|
||||
|
||||
if( dialog.GetApplyToAllUnits() )
|
||||
aItem->SetUnit( 0 );
|
||||
else
|
||||
aItem->SetUnit( m_frame->GetUnit() );
|
||||
|
||||
updateView( aItem );
|
||||
m_frame->GetCanvas()->Refresh();
|
||||
m_frame->OnModify( );
|
||||
|
|
Loading…
Reference in New Issue