mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
When we pass an integer clarify which overloaded version of sqrt() to call
This commit is contained in:
parent
9548b916e7
commit
894192ca23
1 changed files with 1 additions and 1 deletions
|
|
@ -588,7 +588,7 @@ ThemeManager::palette_size_request (Gtk::Requisition* req)
|
||||||
uint32_t ncolors = ARDOUR_UI::instance()->config()->relative_colors.size();
|
uint32_t ncolors = ARDOUR_UI::instance()->config()->relative_colors.size();
|
||||||
const int box_size = 20;
|
const int box_size = 20;
|
||||||
|
|
||||||
double c = sqrt (ncolors);
|
double c = sqrt ((double)ncolors);
|
||||||
req->width = (int) floor (c * box_size);
|
req->width = (int) floor (c * box_size);
|
||||||
req->height = (int) floor (c * box_size);
|
req->height = (int) floor (c * box_size);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue