]> sigrok.org Git - pulseview.git/commitdiff
Removed use of LabelMarginWidth
authorJoel Holdsworth <redacted>
Sat, 7 Dec 2013 23:09:42 +0000 (23:09 +0000)
committerBert Vermeulen <redacted>
Mon, 9 Dec 2013 16:09:57 +0000 (17:09 +0100)
pv/view/view.cpp

index f727cc33b540b4fddc18b77f154a08051d3a78d4..3137dd0c6686b4b9a947e7a708ba14868c16d631 100644 (file)
@@ -143,7 +143,7 @@ int View::v_offset() const
 
 void View::zoom(double steps)
 {
-       zoom(steps, (width() - LabelMarginWidth) / 2);
+       zoom(steps, _viewport->width() / 2);
 }
 
 void View::zoom(double steps, int offset)