Skip to content

Commit 8632f3d

Browse files
authored
Merge pull request #257 from tne-lab/lfp-beta-drawer-fix
Fix crash when opening LFP Viewer Beta drawer before tab or window is opened
2 parents 2713811 + 8465946 commit 8632f3d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Source/Plugins/LfpDisplayNodeBeta/LfpDisplayCanvas.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,9 @@ void LfpDisplay::paint(Graphics& g)
18081808

18091809
void 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]);

0 commit comments

Comments
 (0)