summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/ardour_icon.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-05-31 19:40:04 +0200
committerRobin Gareus <robin@gareus.org>2015-05-31 19:40:04 +0200
commit86f56de6564728d0715191756373f48d983f4328 (patch)
tree5fdd2ec06148661c350f0e52b37cf77c05aa18d6 /libs/gtkmm2ext/ardour_icon.cc
parent6c4d2a576d6744f15f380e291c1cc32cb105a328 (diff)
fix the cairo-fletcher-fluctuation
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.
Diffstat (limited to 'libs/gtkmm2ext/ardour_icon.cc')
-rw-r--r--libs/gtkmm2ext/ardour_icon.cc4
1 files changed, 3 insertions, 1 deletions
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: