Re: [Kicad-developers] [PATCH] Ruler tool asserts when mirrored text is visible

2017-03-30 Thread John Beard
Hi Orson, I hit exactly the same thig with the arc assistant, so I made a little function: GAL::ResetTextAttributes(), next to GAL::SetTextAttributes( EDA_TEXT*). This should be sufficient to make it easy to "reset" GAL state when in a drawing call that doesn't depend on prior state. Also, if

Re: [Kicad-developers] [PATCH] Ruler tool asserts when mirrored text is visible

2017-03-29 Thread John Beard
Sorry, that patch doesn't have the right comment. Please use this one. Thanks, John On Wed, Mar 29, 2017 at 7:37 PM, John Beard wrote: > Hi, > > This resolves https://bugs.launchpad.net/kicad/+bug/1677210. > > This is caused because the GAL ruler tool didn't reset its

[Kicad-developers] [PATCH] Ruler tool asserts when mirrored text is visible

2017-03-29 Thread John Beard
Hi, This resolves https://bugs.launchpad.net/kicad/+bug/1677210. This is caused because the GAL ruler tool didn't reset its text mirroring flag before drawing bitmap text. This means if the GAL had just drawn mirrored text, it would be set, but this is invalid for OpenGL bitmap fonts (and if it