From 86f56de6564728d0715191756373f48d983f4328 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 31 May 2015 19:40:04 +0200 Subject: fix the cairo-fletcher-fluctuation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CF reports occasional “rendering icon 1 at size 1 x 1” always followed by “rendering icon 1 at size 21 x 21”. Probably a GTK bug with some specific version of GTK. --- libs/gtkmm2ext/ardour_icon.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/ardour_icon.cc b/libs/gtkmm2ext/ardour_icon.cc index 5c73296d27..e06d4896da 100644 --- a/libs/gtkmm2ext/ardour_icon.cc +++ b/libs/gtkmm2ext/ardour_icon.cc @@ -977,7 +977,9 @@ Gtkmm2ext::ArdourIcon::render (cairo_t *cr, bool rv = true; cairo_save (cr); - assert (width > 5 && height > 5); + if (width < 6 || height < 6) { + return false; + } switch (icon) { case TransportStop: -- cgit v1.2.3