From 7696ba4602e560b17a0a04b1453fc1c5a79ba9e6 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Mon, 22 Apr 2013 23:19:34 +0000 Subject: [PATCH] Steve's fix for a somewhat obscure (non-Bugzilla) bug. --- src/FreqWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FreqWindow.cpp b/src/FreqWindow.cpp index 1871871c3..78a0c86ca 100644 --- a/src/FreqWindow.cpp +++ b/src/FreqWindow.cpp @@ -212,6 +212,11 @@ FreqWindow::FreqWindow(wxWindow * parent, wxWindowID id, mAxisChoice->SetName(_("Axis")); mAxisChoice->SetSelection(mAxis); + // Log-frequency axis works for spectrum plots only. + if (mAlg != 0) { + mAxis = 0; + mAxisChoice->Disable(); + } mLogAxis = mAxis?true:false;