diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-30 17:28:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-30 17:28:32 +0200 |
commit | 6c4d2a576d6744f15f380e291c1cc32cb105a328 (patch) | |
tree | 9bc8b47d978cae0a17000f4d7aad9937e24ac836 /gtk2_ardour/ardour_button.cc | |
parent | 3bdb40109ba696dd336872e53e58314df28af8ef (diff) |
vector icons should at least be 6x6 px
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |