From 6aac8b2c8aa81deb7c56a40e4292a3c841992f6d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Jan 2020 03:32:18 +0100 Subject: Fix another clang-scan warning --- gtk2_ardour/pianokeyboard.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour/pianokeyboard.cc') 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 (); -- cgit v1.2.3