commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 08/13: qtgui: compare current time domain x


From: git
Subject: [Commit-gnuradio] [gnuradio] 08/13: qtgui: compare current time domain x-axis unit with new unit to ensure time scale update.
Date: Thu, 4 Dec 2014 16:21:50 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 92ac02f7fd7289d11fa6523e0491c6a6d8c3cb56
Author: Marcus Mueller <address@hidden>
Date:   Tue Nov 25 09:31:18 2014 -0500

    qtgui: compare current time domain x-axis unit with new unit to ensure time 
scale update.
---
 gr-qtgui/lib/TimeDomainDisplayPlot.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc 
b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 3fc5924..7b81c86 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -85,6 +85,11 @@ public:
     d_unitType = type;
   }
 
+  std::string unitType()
+  {
+    return d_unitType;
+  }
+
   void setYUnitType(const std::string &type)
   {
     d_yUnitType = type;
@@ -474,7 +479,8 @@ TimeDomainDisplayPlot::setSampleRate(double sr, double 
units,
                                     const std::string &strunits)
 {
   double newsr = sr/units;
-  if(newsr != d_sample_rate) {
+  if((newsr != d_sample_rate) ||
+     (((TimeDomainDisplayZoomer*)d_zoomer)->unitType() != strunits)) {
     d_sample_rate = sr/units;
     _resetXAxisPoints();
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]