From 064f4c4ba7fe0c4909644dd4b410836e3bbfeebc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 27 Dec 2017 18:42:26 +0000 Subject: [PATCH] Commit in-place edits before transfering data from window. Fixes: lp:1592767 * https://bugs.launchpad.net/kicad/+bug/1592767 --- pcbnew/dialogs/dialog_design_rules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/dialogs/dialog_design_rules.cpp b/pcbnew/dialogs/dialog_design_rules.cpp index 691cba0eb0..49bad04eb0 100644 --- a/pcbnew/dialogs/dialog_design_rules.cpp +++ b/pcbnew/dialogs/dialog_design_rules.cpp @@ -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