diff options
author | David Robillard <d@drobilla.net> | 2013-01-13 06:17:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-13 06:17:28 +0000 |
commit | 6c81b00c7be1f590f13599b4d5e638686e4e7236 (patch) | |
tree | c6cd320fc459d255c41c258ce526625019a395db /src/Patchage.cpp | |
parent | c398f1e425e6c4570be3a7d78937c44a1f915c2b (diff) | |
download | patchage-6c81b00c7be1f590f13599b4d5e638686e4e7236.tar.gz patchage-6c81b00c7be1f590f13599b4d5e638686e4e7236.tar.bz2 patchage-6c81b00c7be1f590f13599b4d5e638686e4e7236.zip |
Update for latest ganv.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4953 a436a847-0d15-0410-975c-d299462d15a1
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) |