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

Fixes: lp:1836183
* https://bugs.launchpad.net/kicad/+bug/1836183

(cherry picked from commit 6c9e34e799)
This commit is contained in:
Jeff Young 2019-07-11 18:19:05 +01:00
parent 6ba2c44e88
commit f11d950448
1 changed files with 5 additions and 0 deletions

View File

@ -386,7 +386,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 );
}
}