]> sigrok.org Git - pulseview.git/commitdiff
In View::zoom_one_to_one use View::get_visible_data
authorJoel Holdsworth <redacted>
Sun, 16 Feb 2014 10:14:08 +0000 (10:14 +0000)
committerJoel Holdsworth <redacted>
Sat, 1 Mar 2014 11:02:10 +0000 (11:02 +0000)
pv/view/view.cpp

index b0e97cb8e04e7df2d5ae558fe92ddcac0ed6c7f7..6970ec39adb49945f8dd292567e6ce5b32b03ed7 100644 (file)
@@ -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<SignalData> > visible_data;
-       BOOST_FOREACH(const shared_ptr<Signal> sig, sigs)
-               if (sig->enabled())
-                       visible_data.insert(sig->data());
-
+       set< shared_ptr<SignalData> > visible_data = get_visible_data();
        if (visible_data.empty())
                return;