From 6c4d2a576d6744f15f380e291c1cc32cb105a328 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 30 May 2015 17:28:32 +0200 Subject: vector icons should at least be 6x6 px --- gtk2_ardour/ardour_button.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour/ardour_button.cc') diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 16770f4a99..c06c3629a5 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -562,7 +562,7 @@ ArdourButton::on_size_request (Gtk::Requisition* req) if (_elements & VectorIcon) { assert(!(_elements & Text)); - const int wh = std::max (rint (TRACKHEADERBTNW * char_avg_pixel_width()), ceil (char_pixel_height() * BASELINESTRETCH + 1.)); + const int wh = std::max (6., std::max (rint (TRACKHEADERBTNW * char_avg_pixel_width()), ceil (char_pixel_height() * BASELINESTRETCH + 1.))); req->width += wh; req->height = std::max(req->height, wh); } -- cgit v1.2.3