Ensure DrawRectangle() stroke outline will always be visible
Fixes: lp:1743242 * https://bugs.launchpad.net/kicad/+bug/1743242
This commit is contained in:
parent
94c8a947ad
commit
74d47d8173
|
@ -688,6 +688,9 @@ void OPENGL_GAL::DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEn
|
||||||
// Stroke the outline
|
// Stroke the outline
|
||||||
if( isStrokeEnabled )
|
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 );
|
currentManager->Color( strokeColor.r, strokeColor.g, strokeColor.b, strokeColor.a );
|
||||||
|
|
||||||
std::deque<VECTOR2D> pointList;
|
std::deque<VECTOR2D> pointList;
|
||||||
|
|
Loading…
Reference in New Issue