diff options
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index cd39cc8..3be7ed2 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -351,11 +351,8 @@ Patchage::zoom(double z) void Patchage::refresh() { - assert(_canvas); - - if (_enable_refresh) { - - _canvas->destroy(); + if (_canvas && _enable_refresh) { + _canvas->clear(); #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) if (_jack_driver) |