From bc4662fd23fb28bfa9e04d8a26cd9c17d8db3225 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 13 Dec 2017 15:32:20 +0000 Subject: SVG images: fix image printing under MacOS when not used as a scaled Fl_Shared_Image git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_SVG_Image.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx index 7ff6c72fa..d7eb8c83c 100644 --- a/src/Fl_SVG_Image.cxx +++ b/src/Fl_SVG_Image.cxx @@ -250,6 +250,7 @@ void Fl_SVG_Image::draw(int X, int Y, int W, int H, int cx, int cy) { if (need_clip) fl_push_clip(X, Y, W, H); fl_graphics_driver->draw_scaled(this, X-cx, Y-cy, w1, h1); if (need_clip) fl_pop_clip(); + w(w1); h(h1); // restore the previous image size } } -- cgit v1.2.3