Consistent AU factory Preset IDs
[ardour.git] / libs / gtkmm2ext / utils.cc
index 7e340be79169d1376e083f5cac04bb90ef8ecb02..bdb44090c3041d612cfa7e46c6f1cc6f1b3aef04 100644 (file)
@@ -687,6 +687,10 @@ void
 Gtkmm2ext::rounded_rectangle (cairo_t* cr, double x, double y, double w, double h, double r)
 {
        static const double degrees = M_PI / 180.0;
+       if (r < 1) {
+               cairo_rectangle (cr, x, y, w, h);
+               return;
+       }
 
        cairo_new_sub_path (cr);
        cairo_arc (cr, x + w - r, y + r, r, -90 * degrees, 0 * degrees);  //tr
@@ -1110,7 +1114,7 @@ Gtkmm2ext::add_volume_shortcuts (Gtk::FileChooser& c)
                        }
                }
        }
-       catch (Glib::FileError& e) {
+       catch (Glib::FileError const& e) {
                std::cerr << "listing /Volumnes failed: " << e.what() << std::endl;
        }
 #endif