diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-14 11:07:12 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-14 11:07:56 +0200 |
| commit | d83d89679beb0d92b140684230936d264a182679 (patch) | |
| tree | d865b8e7634129c9942da85425552580de1234d2 /FL/Fl_Pixmap.H | |
| parent | 1e99a00c65d3eaba724a3743dd79c25996756521 (diff) | |
Fix for issue #429 : Segfault with Ctrl+/- with current git version
Diffstat (limited to 'FL/Fl_Pixmap.H')
| -rw-r--r-- | FL/Fl_Pixmap.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Pixmap.H b/FL/Fl_Pixmap.H index c446a92be..caa0e9371 100644 --- a/FL/Fl_Pixmap.H +++ b/FL/Fl_Pixmap.H @@ -63,8 +63,8 @@ public: /** The constructors create a new pixmap from the specified XPM data. */ explicit Fl_Pixmap(const uchar* const * D) : Fl_Image(-1,0,1), alloc_data(0), id_(0), mask_(0) {set_data((const char*const*)D); measure();} virtual ~Fl_Pixmap(); - virtual Fl_Image *copy(int W, int H); - Fl_Image *copy() { return Fl_Image::copy(); } + virtual Fl_Image *copy(int W, int H) const; + Fl_Image *copy() const { return Fl_Image::copy(); } virtual void color_average(Fl_Color c, float i); virtual void desaturate(); virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); |
