summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/constellationdisplayform.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/constellationdisplayform.cc')
-rw-r--r--gr-qtgui/lib/constellationdisplayform.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/gr-qtgui/lib/constellationdisplayform.cc b/gr-qtgui/lib/constellationdisplayform.cc
index 422e48ea87..e3c65ec41d 100644
--- a/gr-qtgui/lib/constellationdisplayform.cc
+++ b/gr-qtgui/lib/constellationdisplayform.cc
@@ -110,13 +110,8 @@ ConstellationDisplayForm::setXaxis(double min, double max)
void
ConstellationDisplayForm::autoScale(bool en)
{
- if(en) {
- _autoscale_state = true;
- }
- else {
- _autoscale_state = false;
- }
-
+ _autoscale_state = en;
+ _autoscale_act->setChecked(en);
getPlot()->setAutoScale(_autoscale_state);
getPlot()->replot();
}