From 156a05079efc22048cc44f68ccfa3353d767ea28 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Mon, 20 Aug 2012 09:03:45 +0200 Subject: [PATCH] structure array deserialization fixed --- pvDataApp/factory/PVStructureArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvDataApp/factory/PVStructureArray.cpp b/pvDataApp/factory/PVStructureArray.cpp index 2935316..ce36abf 100644 --- a/pvDataApp/factory/PVStructureArray.cpp +++ b/pvDataApp/factory/PVStructureArray.cpp @@ -192,6 +192,7 @@ void PVStructureArray::deserialize(ByteBuffer *pbuffer, if(size>=0) { // prepare array, if necessary if(size>getCapacity()) setCapacity(size); + setLength(size); PVStructurePtrArray *pvArray = value.get(); for(size_t i = 0; iensureData(1); @@ -207,7 +208,6 @@ void PVStructureArray::deserialize(ByteBuffer *pbuffer, (*pvArray)[i]->deserialize(pbuffer, pcontrol); } } - setLength(size); postPut(); } }