13
0

if a button has an icon, dont draw text as well

This commit is contained in:
Ben Loftis 2014-07-14 10:28:50 -05:00
parent 849d80bfcc
commit fc305cb217

View File

@ -332,7 +332,7 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
text_margin = 10;
}
if ( ((_elements & Text)==Text) && !_text.empty()) {
if ( !_pixbuf && ((_elements & Text)==Text) && !_text.empty()) {
cairo_save (cr);
cairo_rectangle (cr, 2, 1, get_width()-4, get_height()-2);
cairo_clip(cr);