delete track uses dirty rect
This commit is contained in:
parent
3bb1764dff
commit
bc04d5e54c
|
@ -218,10 +218,10 @@ EDA_Rect TRACK::GetBoundingBox() const
|
||||||
|
|
||||||
if( Type() == TYPEVIA )
|
if( Type() == TYPEVIA )
|
||||||
{
|
{
|
||||||
// because vias are sometimes drawn larger than their m_Width would
|
// Because vias are sometimes drawn larger than their m_Width would
|
||||||
// provide, erasing them using a dirty rect must also compensate for
|
// provide, erasing them using a dirty rect must also compensate for this
|
||||||
// possibility (that the via is larger than its m_Width would provide).
|
// possibility (that the via is larger on screen than its m_Width would provide).
|
||||||
// because it is cheap to return a larger BoundingBox, do it so that
|
// Because it is cheap to return a larger BoundingBox, do it so that
|
||||||
// the via gets erased properly. Do not divide width by 2 for this reason.
|
// the via gets erased properly. Do not divide width by 2 for this reason.
|
||||||
radius = m_Width;
|
radius = m_Width;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue