fix zoom on elements, fixes #61
This commit is contained in:
parent
634340cabb
commit
a6d702d85d
@ -736,7 +736,7 @@ void FPGAViewWidget::zoomOut() { zoom(-10); }
|
||||
|
||||
void FPGAViewWidget::zoomToBB(const PickQuadTree::BoundingBox &bb, float margin)
|
||||
{
|
||||
if (bb.w() < 0.00005 && bb.h() < 0.00005)
|
||||
if (fabs(bb.w()) < 0.00005 && fabs(bb.h()) < 0.00005)
|
||||
return;
|
||||
|
||||
viewMove_.setToIdentity();
|
||||
|
Loading…
Reference in New Issue
Block a user