Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7ffdc5fd authored by David Parsons's avatar David Parsons
Browse files

Fix #46 Bug in CDS X11 view: genome may be bigger than window

parent ae7bbcd0
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ void Individual_X11::display_cdss(X11Window * win)
else canvas_width = win->width();
int16_t canvas_height = win->height();
int16_t canvas_size = Utils::min(canvas_width, canvas_width);
int16_t canvas_size = Utils::min(canvas_width, canvas_height);
int16_t diam = round(canvas_size * log((double)genome_length) / 16);
// Prevent diameter from getting greater than 2/3 of the window size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment