fl_imgtk::rescale crashing with SVG
fire-eggs opened this issue · comments
Testing in YAIV.
Load firefox_logo_2017.svg
Use 's' or up/down arrow keys to change zoom to something besides 100%.
Use 'z' key to change imgTk scaling method.
SIGSEGV in ResizeEngine::horizontalFilter
It's the end of my day otherwise I'd have dug into it further.
Fl_SVG_Image implements Fl_RGB_Image but, actually it don't be used with fl_imgtk.
There's rasterizing method void Fl_SVG_Image::rasterize_(int W, int H);
in source code, and it called by void Fl_SVG_Image::resize(int width, int height);
It will be better to check SVG image (vector image), and call resize() method is better.
fl_imgtk is just made for raster images, not vector types.