From e47b3636d9b7548268a0df1e63f69119aac7985f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 19 Aug 2025 09:37:23 -0600 Subject: [PATCH] remove crashing assert() when rendering scroomer Too hard to get a floating point assert correct, but I think this is still a little incorrect because we do not scale the kbd size when rendering it. --- gtk2_ardour/prh_base.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk2_ardour/prh_base.cc b/gtk2_ardour/prh_base.cc index f27f457874..9c18008fe4 100644 --- a/gtk2_ardour/prh_base.cc +++ b/gtk2_ardour/prh_base.cc @@ -352,11 +352,6 @@ PianoRollHeaderBase::render (ArdourCanvas::Rect const & self, ArdourCanvas::Rect Gtkmm2ext::set_source_rgba (cr, bg); - if (_scroomer_size != width() - kbd_width) { - std::cerr << "about to crash, scroomer width " << _scroomer_size << " w " << width() << " kbd width " << kbd_width << std::endl; - } - assert (_scroomer_size == width() - kbd_width); - double x = _scroomer_size; double y = positions[n];