summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/VectorDisplayPlot.cc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-09-28 04:31:30 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-09-28 04:31:30 -0700
commit9e11c519b55d65bfcedfa5324c75bf7f268c9dbc (patch)
tree7fd8a9a15da3f12ca2cfd466dcc89ce00967fc6f /gr-qtgui/lib/VectorDisplayPlot.cc
parent5cb9aef4c3bbc34cd83cebd1be467b2d20a35225 (diff)
parent90c88a94945f889445f79c610a5e7d6fc6221310 (diff)
Merge branch 'maint'
Diffstat (limited to 'gr-qtgui/lib/VectorDisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/VectorDisplayPlot.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gr-qtgui/lib/VectorDisplayPlot.cc b/gr-qtgui/lib/VectorDisplayPlot.cc
index 2babfea1cc..54d5c49acc 100644
--- a/gr-qtgui/lib/VectorDisplayPlot.cc
+++ b/gr-qtgui/lib/VectorDisplayPlot.cc
@@ -284,12 +284,12 @@ void VectorDisplayPlot::setYAxisLabel(const QString &label)
void VectorDisplayPlot::setXAxisUnit(const QString &unit)
{
- ((VectorDisplayZoomer*)d_zoomer)->setXUnits(unit);
+ ((VectorDisplayZoomer*)d_zoomer)->setXUnits(unit);
}
void VectorDisplayPlot::setYAxisUnit(const QString &unit)
{
- ((VectorDisplayZoomer*)d_zoomer)->setYUnits(unit);
+ ((VectorDisplayZoomer*)d_zoomer)->setYUnits(unit);
}
void
@@ -301,17 +301,17 @@ VectorDisplayPlot::setXAxisValues(
if((start != d_x_axis_start) || (step != d_x_axis_step))
reset = true;
- d_x_axis_start = start;
- d_x_axis_step = step;
+ d_x_axis_start = start;
+ d_x_axis_step = step;
- if((axisScaleDraw(QwtPlot::xBottom) != NULL) && (d_zoomer != NULL)) {
- setAxisTitle(QwtPlot::xBottom, d_x_axis_label);
- if(reset) {
- _resetXAxisPoints();
- clearMaxData();
- clearMinData();
- }
+ if((axisScaleDraw(QwtPlot::xBottom) != NULL) && (d_zoomer != NULL)) {
+ setAxisTitle(QwtPlot::xBottom, d_x_axis_label);
+ if(reset) {
+ _resetXAxisPoints();
+ clearMaxData();
+ clearMinData();
}
+ }
}
void