diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-22 14:27:13 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-22 14:27:13 +0100 |
| commit | 05a3f82a5c385e7f00aa2bb8c1971e1cc99225a3 (patch) | |
| tree | 6d9a37921c572d108b9ff75f5728e9a1654b1306 /FL/Fl_SVG_Image.H | |
| parent | 14a5f705c8e3385a637be3377f0800b30c38e589 (diff) | |
Fix "Setting window custom cursor from SVG image crashes" (#1363)
Diffstat (limited to 'FL/Fl_SVG_Image.H')
| -rw-r--r-- | FL/Fl_SVG_Image.H | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H index f1dd7095e..d49d1db59 100644 --- a/FL/Fl_SVG_Image.H +++ b/FL/Fl_SVG_Image.H @@ -170,6 +170,7 @@ public: void draw(int X, int Y, int W, int H, int cx = 0, int cy = 0) override; void draw(int X, int Y) { draw(X, Y, w(), h(), 0, 0); } Fl_SVG_Image *as_svg_image() override { return this; } + const Fl_SVG_Image *as_svg_image() const override { return this; } void normalize() override; }; |
