13
0

When we pass an integer clarify which overloaded version of sqrt() to call

This commit is contained in:
John Emmas 2014-12-08 10:29:45 +00:00
parent 9548b916e7
commit 894192ca23

View File

@ -588,7 +588,7 @@ ThemeManager::palette_size_request (Gtk::Requisition* req)
uint32_t ncolors = ARDOUR_UI::instance()->config()->relative_colors.size();
const int box_size = 20;
double c = sqrt (ncolors);
double c = sqrt ((double)ncolors);
req->width = (int) floor (c * box_size);
req->height = (int) floor (c * box_size);