When we pass an integer clarify which overloaded version of sqrt() to call
This commit is contained in:
parent
9548b916e7
commit
894192ca23
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user