diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-12-08 10:29:45 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-12-08 10:29:45 +0000 |
commit | 894192ca23d010fed45972113fcefae6a40977fd (patch) | |
tree | 15295d5403612aeb57dc6a587e1987ac14315acf /gtk2_ardour/theme_manager.cc | |
parent | 9548b916e7d2f33e3ef4240d0f4cc474cb70aaa8 (diff) |
When we pass an integer clarify which overloaded version of sqrt() to call
Diffstat (limited to 'gtk2_ardour/theme_manager.cc')
-rw-r--r-- | gtk2_ardour/theme_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc index 2be69d65b9..d79b752389 100644 --- a/gtk2_ardour/theme_manager.cc +++ b/gtk2_ardour/theme_manager.cc @@ -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); |