Ensure DrawRectangle() stroke outline will always be visible

Fixes: lp:1743242
* https://bugs.launchpad.net/kicad/+bug/1743242
This commit is contained in:
Jon Evans 2018-01-15 23:05:16 -05:00 committed by Maciej Suminski
parent 94c8a947ad
commit 74d47d8173
1 changed files with 3 additions and 0 deletions

View File

@ -688,6 +688,9 @@ void OPENGL_GAL::DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEn
// Stroke the outline
if( isStrokeEnabled )
{
// Ensure stroke will be visible at current zoom
lineWidth = std::max( lineWidth, ( 1.01 / worldScale ) );
currentManager->Color( strokeColor.r, strokeColor.g, strokeColor.b, strokeColor.a );
std::deque<VECTOR2D> pointList;