Corrected check on cd_client in CalmaRdcl; if not set for holding

GDS plane data, it is initialized to CLIENTDEFAULT, not NULL.
This commit is contained in:
Tim Edwards 2019-08-20 14:44:20 -04:00
parent aa4bb4b19c
commit c360fb9d5a
1 changed files with 2 additions and 1 deletions

View File

@ -903,7 +903,8 @@ calmaElementSref(filename)
for (pNum = 0; pNum < MAXCIFRLAYERS; pNum++)
{
if (gdsplanes[pNum] != NULL)
if ((def->cd_client != (ClientData)CLIENTDEFAULT) &&
(gdsplanes[pNum] != NULL))
{
gdsCopyRec.plane = cifCurReadPlanes[pNum];
if (isArray)