From b9ddfa0b7d87216f73a28e7ff2625b00efeece2e Mon Sep 17 00:00:00 2001 From: Robin Cornelius Date: Wed, 4 Jan 2017 13:55:49 +0000 Subject: [PATCH] only apply concrete node offset if its present and its set --- EDSTest/DevicePDOView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDSTest/DevicePDOView.cs b/EDSTest/DevicePDOView.cs index 27ac51ee..1ffaa96f 100644 --- a/EDSTest/DevicePDOView.cs +++ b/EDSTest/DevicePDOView.cs @@ -602,7 +602,7 @@ private void button_savepdochanges_Click(object sender, EventArgs e) int nodeoffset = 0; - if (eds.di.concreteNodeId != -1) + if (nodeidpresent && eds.di.concreteNodeId != -1) nodeoffset = eds.di.concreteNodeId; eds.ods[index].subobjects[1].defaultvalue = string.Format("0x{0:x8}", newnode-nodeoffset);