make them work if not top level value field

This commit is contained in:
mrkraimer
2019-04-08 14:23:58 -04:00
parent 00103f8207
commit 0bb17d5b09
2 changed files with 4 additions and 10 deletions

View File

@@ -309,11 +309,8 @@ shared_vector<const string> PvaClientData::getStringArray()
PVFieldPtr pvField(fieldPtrArray[0]);
Type type = pvField->getField()->getType();
if(type==scalarArray) {
PVScalarArrayPtr pvScalarArray = static_pointer_cast<PVScalarArray>(pvField);
if(pvScalarArray->getScalarArray()->getElementType()==pvString) {
pvScalarArray = static_pointer_cast<PVScalarArray>(pvField);
break;
}
pvScalarArray = static_pointer_cast<PVScalarArray>(pvField);
break;
}
if(pvField->getField()->getType()!=epics::pvData::structure) break;
pvStructure = static_pointer_cast<PVStructure>(pvField);