diff options
| author | Manolo Gouy <Manolo> | 2017-12-13 15:32:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-12-13 15:32:20 +0000 |
| commit | bc4662fd23fb28bfa9e04d8a26cd9c17d8db3225 (patch) | |
| tree | 5da7c83ef00e133e8e4790ec4f799cb96c8cd9d4 /src | |
| parent | d9a99c64fd0bc377d59b39790fd45d98da9a4a24 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_SVG_Image.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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 } } |
