Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/3335
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 2, 2021
1 parent 1b3585f commit ad492c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magick/widget.c
Expand Up @@ -5723,7 +5723,8 @@ MagickExport void XFontBrowserWidget(Display *display,XWindows *windows,
slider_info.bevel_width+2;
slider_info.height=scroll_info.height-((slider_info.min_y-
scroll_info.y+1) << 1)+4;
visible_fonts=scroll_info.height/(height+(height >> 3));
visible_fonts=(unsigned int) (scroll_info.height*
PerceptibleReciprocal((double) height+(height >> 3)));
if (fonts > (int) visible_fonts)
slider_info.height=(visible_fonts*slider_info.height)/fonts;
slider_info.max_y=south_info.y-south_info.bevel_width-
Expand Down

0 comments on commit ad492c7

Please sign in to comment.