Don't let visibility bit get nuked when updating effects.

Fixes: lp:1836183
* https://bugs.launchpad.net/kicad/+bug/1836183
This commit is contained in:
Jeff Young 2019-07-11 18:19:05 +01:00
parent 029b624e96
commit 6c9e34e799
1 changed files with 5 additions and 0 deletions

View File

@ -374,7 +374,12 @@ void processTextItem( const TEXTE_MODULE& aSrc, TEXTE_MODULE& aDest,
}
if( !resetTextEffects )
{
// Careful: the visible bit is also in Effects
bool visible = aDest.IsVisible();
aDest.SetEffects( aSrc );
aDest.SetVisible( visible );
}
}