From ce76f2a96cc78d821dd53e0139582179b741e2ac Mon Sep 17 00:00:00 2001 From: jsiegle <jsiegle@mit.edu> Date: Sun, 11 Mar 2012 18:01:48 -0400 Subject: [PATCH] Fixed minor bug in GenericEditor code --- Source/Processors/Editors/GenericEditor.cpp | 6 ++++-- Source/Processors/Editors/VisualizerEditor.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Processors/Editors/GenericEditor.cpp b/Source/Processors/Editors/GenericEditor.cpp index 36b99a670..0de056b88 100644 --- a/Source/Processors/Editors/GenericEditor.cpp +++ b/Source/Processors/Editors/GenericEditor.cpp @@ -444,9 +444,11 @@ void GenericEditor::update() if (numChannels == 0) { - drawerButton->setVisible(false); + if (drawerButton != 0) + drawerButton->setVisible(false); } else { - drawerButton->setVisible(true); + if (drawerButton != 0) + drawerButton->setVisible(true); } updateVisualizer(); // does nothing unless this method diff --git a/Source/Processors/Editors/VisualizerEditor.h b/Source/Processors/Editors/VisualizerEditor.h index f31a553fa..3f8796f74 100644 --- a/Source/Processors/Editors/VisualizerEditor.h +++ b/Source/Processors/Editors/VisualizerEditor.h @@ -67,8 +67,8 @@ public: void updateVisualizer(); - ScopedPointer <DataWindow> dataWindow; - ScopedPointer <Visualizer> canvas; + ScopedPointer<DataWindow> dataWindow; + ScopedPointer<Visualizer> canvas; private: -- GitLab