diff options
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeDomainDisplayPlot.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc index 3fc592481f..7b81c86d2e 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(); |