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:
jean-pierre charras 2019-07-01 12:36:46 +02:00
parent 978c4fd7d3
commit 5ed8ba5bf3
2 changed files with 478 additions and 468 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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( );