fix zoom on elements, fixes #61

This commit is contained in:
Miodrag Milanovic 2018-08-19 20:54:41 +02:00
parent 634340cabb
commit a6d702d85d

View File

@ -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();