CIFgen: Fix processing of MASKHINTS_* properties
- Don't print error if there is no more data to process - Fix error message: `propname` already has the MASKHINTS_ prefix Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
01e86c0d46
commit
eb945dc6ef
|
|
@ -5157,7 +5157,7 @@ CIFGenLayer(op, area, cellDef, origDef, temps, hier, clientdata)
|
||||||
propvalue = (char *)DBPropGet(origDef, propname, &found);
|
propvalue = (char *)DBPropGet(origDef, propname, &found);
|
||||||
if (!found) break; /* No mask hints available */
|
if (!found) break; /* No mask hints available */
|
||||||
propptr = propvalue;
|
propptr = propvalue;
|
||||||
while (TRUE)
|
while (*propptr)
|
||||||
{
|
{
|
||||||
numfound = sscanf(propptr, "%d %d %d %d",
|
numfound = sscanf(propptr, "%d %d %d %d",
|
||||||
&bbox.r_xbot, &bbox.r_ybot,
|
&bbox.r_xbot, &bbox.r_ybot,
|
||||||
|
|
@ -5169,8 +5169,7 @@ CIFGenLayer(op, area, cellDef, origDef, temps, hier, clientdata)
|
||||||
* at the start of the list and parse accordingly.
|
* at the start of the list and parse accordingly.
|
||||||
* For now, this only flags an error.
|
* For now, this only flags an error.
|
||||||
*/
|
*/
|
||||||
TxError("MASKHINTS_%s: Cannot read rectangle values.\n",
|
TxError("%s: Cannot read rectangle values.\n", propname);
|
||||||
propname);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cifScale = (CIFCurStyle) ? CIFCurStyle->cs_scaleFactor : 1;
|
cifScale = (CIFCurStyle) ? CIFCurStyle->cs_scaleFactor : 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue