From: Joel Holdsworth Date: Sun, 16 Feb 2014 10:14:08 +0000 (+0000) Subject: In View::zoom_one_to_one use View::get_visible_data X-Git-Tag: pulseview-0.2.0~58 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0fc664a99e0d9a444e593123d1db7a47b1657366;p=pulseview.git In View::zoom_one_to_one use View::get_visible_data --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index b0e97cb8..6970ec39 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -181,11 +181,7 @@ void View::zoom_one_to_one() session().get_signals()); // Make a set of all the visible data objects - set< shared_ptr > visible_data; - BOOST_FOREACH(const shared_ptr sig, sigs) - if (sig->enabled()) - visible_data.insert(sig->data()); - + set< shared_ptr > visible_data = get_visible_data(); if (visible_data.empty()) return;