File tree Expand file tree Collapse file tree
Plugins/LfpDisplayNodeBeta Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1808,6 +1808,9 @@ void LfpDisplay::paint(Graphics& g)
18081808
18091809void LfpDisplay::refresh ()
18101810{
1811+ // Ensure the lfpChannelBitmap has been initialized
1812+ if (lfpChannelBitmap.isNull ()) { resized (); }
1813+
18111814 // X-bounds of this update
18121815 int fillfrom = canvas->lastScreenBufferIndex [0 ];
18131816 int fillto = (canvas->screenBufferIndex [0 ]);
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ void VisualizerEditor::buttonClicked (Button* button)
201201 GenericEditor::buttonClicked (button);
202202
203203 // Handle the buttons to open the canvas in a tab or window
204- if (canvas == nullptr )
204+ if ((button == windowSelector || button == tabSelector) && canvas == nullptr )
205205 {
206206 canvas = createNewCanvas ();
207207 canvas->update ();
You can’t perform that action at this time.
0 commit comments