diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-27 03:32:18 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-27 03:32:18 +0100 |
commit | 6aac8b2c8aa81deb7c56a40e4292a3c841992f6d (patch) | |
tree | d1532fd8c17740c2661aed44b3f879470ff3635a /gtk2_ardour/pianokeyboard.cc | |
parent | fc7dd5115def88d0dd74cc038517680f050a4ded (diff) |
Fix another clang-scan warning
Diffstat (limited to 'gtk2_ardour/pianokeyboard.cc')
-rw-r--r-- | gtk2_ardour/pianokeyboard.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/pianokeyboard.cc b/gtk2_ardour/pianokeyboard.cc index 090e1392c2..ae508fdd7a 100644 --- a/gtk2_ardour/pianokeyboard.cc +++ b/gtk2_ardour/pianokeyboard.cc @@ -917,6 +917,8 @@ APianoKeyboard::recompute_dimensions () } } + assert (number_of_white_keys > 0); + int width = get_width (); int height = get_height (); |