Commit in-place edits before transfering data from window.

Fixes: lp:1592767
* https://bugs.launchpad.net/kicad/+bug/1592767
This commit is contained in:
Jeff Young 2017-12-27 18:42:26 +00:00 committed by Wayne Stambaugh
parent 70fab83b4f
commit 064f4c4ba7
1 changed files with 3 additions and 0 deletions

View File

@ -551,6 +551,9 @@ static void gridRow2class( wxGrid* grid, int row, NETCLASSPTR nc )
void DIALOG_DESIGN_RULES::CopyRulesListToBoard()
{
// Commit any pending in-place edits first
m_grid->SaveEditControlValue();
NETCLASSES& netclasses = m_BrdSettings->m_NetClasses;
// Remove all netclasses from board. We'll copy new list after