1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-03 22:58:26 +00:00

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