Don't cut invisible module text out of zones.

Fixes: lp:1808651
* https://bugs.launchpad.net/kicad/+bug/1808651
This commit is contained in:
Jeff Young 2018-12-15 20:12:26 +00:00
parent e2ed0e6557
commit f69ea8b4a2
1 changed files with 5 additions and 2 deletions

View File

@ -555,8 +555,11 @@ void ZONE_FILLER::buildZoneFeatureHoleList( const ZONE_CONTAINER* aZone,
break;
case PCB_MODULE_TEXT_T:
( (TEXTE_PCB*) aItem )->TransformBoundingBoxWithClearanceToPolygon(
&aFeatures, zclearance );
if( ( (TEXTE_MODULE*) aItem )->IsVisible() )
{
( (TEXTE_MODULE*) aItem )->TransformBoundingBoxWithClearanceToPolygon(
&aFeatures, zclearance );
}
break;
default: