Commit in-place editing changes when dialog OK'ed.
Grid control in-place editing changes are not automatically committed (at least on OSX). Fixes: lp:1736836 * https://bugs.launchpad.net/kicad/+bug/1736836
This commit is contained in:
parent
a9ccf1161b
commit
27a55c5cd4
|
@ -614,6 +614,10 @@ void DIALOG_DESIGN_RULES::CopyDimensionsListsToBoard()
|
||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
|
|
||||||
|
// Commit any pending in-place edits from grid controls
|
||||||
|
m_gridTrackWidthList->SaveEditControlValue();
|
||||||
|
m_gridViaSizeList->SaveEditControlValue();
|
||||||
|
|
||||||
// Reinitialize m_TrackWidthList
|
// Reinitialize m_TrackWidthList
|
||||||
m_TracksWidthList.clear();
|
m_TracksWidthList.clear();
|
||||||
|
|
||||||
|
@ -631,7 +635,7 @@ void DIALOG_DESIGN_RULES::CopyDimensionsListsToBoard()
|
||||||
// Sort new list by by increasing value
|
// Sort new list by by increasing value
|
||||||
sort( m_TracksWidthList.begin(), m_TracksWidthList.end() );
|
sort( m_TracksWidthList.begin(), m_TracksWidthList.end() );
|
||||||
|
|
||||||
// Reinitialize m_TrackWidthList
|
// Reinitialize m_ViasDimensionsList
|
||||||
m_ViasDimensionsList.clear();
|
m_ViasDimensionsList.clear();
|
||||||
|
|
||||||
for( int row = 0; row < m_gridViaSizeList->GetNumberRows(); ++row )
|
for( int row = 0; row < m_gridViaSizeList->GetNumberRows(); ++row )
|
||||||
|
|
Loading…
Reference in New Issue