From 2c19290fab404baf2f31e87d0c3786ff6e3c4bf9 Mon Sep 17 00:00:00 2001 From: "Raine M. Ekman" Date: Tue, 8 Apr 2014 21:44:19 +0300 Subject: [PATCH] Fix broken command line rendering. Should always check that editor windows exist before using them. --- src/tracks/pattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracks/pattern.cpp b/src/tracks/pattern.cpp index c1022d991..952f6fdec 100644 --- a/src/tracks/pattern.cpp +++ b/src/tracks/pattern.cpp @@ -537,7 +537,7 @@ void pattern::updateBBTrack() engine::getBBTrackContainer()->updateBBTrack( this ); } - if( engine::pianoRoll()->currentPattern() == this ) + if( engine::pianoRoll() && engine::pianoRoll()->currentPattern() == this ) { engine::pianoRoll()->update(); }