summaryrefslogtreecommitdiff
path: root/FL/Fl_Image.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-22 14:27:13 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-22 14:27:13 +0100
commit05a3f82a5c385e7f00aa2bb8c1971e1cc99225a3 (patch)
tree6d9a37921c572d108b9ff75f5728e9a1654b1306 /FL/Fl_Image.H
parent14a5f705c8e3385a637be3377f0800b30c38e589 (diff)
Fix "Setting window custom cursor from SVG image crashes" (#1363)
Diffstat (limited to 'FL/Fl_Image.H')
-rw-r--r--FL/Fl_Image.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H
index d8fac1883..b342bad83 100644
--- a/FL/Fl_Image.H
+++ b/FL/Fl_Image.H
@@ -392,9 +392,12 @@ public:
\sa void Fl_RGB_Image::max_size(size_t)
*/
static size_t max_size() {return max_size_;}
- /** Returns whether an image is an Fl_SVG_Image or not.
+ /** Returns whether an RGB image is an Fl_SVG_Image or not.
This virtual method returns a pointer to the Fl_SVG_Image if this object is an instance of Fl_SVG_Image or NULL if not. */
virtual Fl_SVG_Image *as_svg_image() { return NULL; }
+ /** Returns whether an RGB image is an Fl_SVG_Image or not.
+ This virtual method returns a pointer to the Fl_SVG_Image if this object is an instance of const Fl_SVG_Image or NULL if not. */
+ virtual const Fl_SVG_Image *as_svg_image() const { return NULL; }
/** Makes sure the object is fully initialized.
In particular, makes sure member variable \ref array is non-null. */
virtual void normalize() {}