Added code to avoid making a call to get a default layer width on
an invalid type. This prevents magic from generating unneeded error messages about default layer widths on GDS read-in.
This commit is contained in:
parent
3d1cf5aa2e
commit
583aaa1007
|
|
@ -736,11 +736,15 @@ calmaElementText()
|
||||||
* as the default text size, or 1um, whichever is smaller. Account
|
* as the default text size, or 1um, whichever is smaller. Account
|
||||||
* for the 8/10 difference encoded in the rendered font height.
|
* for the 8/10 difference encoded in the rendered font height.
|
||||||
*/
|
*/
|
||||||
size = DRCGetDefaultLayerWidth(type);
|
size = 0;
|
||||||
if (size > 0)
|
if (type > 0)
|
||||||
{
|
{
|
||||||
size *= (calmaReadScale2 * cifCurReadStyle->crs_multiplier * 8);
|
size = DRCGetDefaultLayerWidth(type);
|
||||||
size /= (calmaReadScale1 * cifCurReadStyle->crs_scaleFactor * 10);
|
if (size > 0)
|
||||||
|
{
|
||||||
|
size *= (calmaReadScale2 * cifCurReadStyle->crs_multiplier * 8);
|
||||||
|
size /= (calmaReadScale1 * cifCurReadStyle->crs_scaleFactor * 10);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default or maximum size is 1um */
|
/* Default or maximum size is 1um */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue