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 /src | |
| parent | 1e99a00c65d3eaba724a3743dd79c25996756521 (diff) | |
Fix for issue #429 : Segfault with Ctrl+/- with current git version
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Bitmap.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_Pixmap.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index f760ac979..cbe997827 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -55,7 +55,7 @@ void Fl_Bitmap::label(Fl_Menu_Item* m) { m->label(FL_IMAGE_LABEL, (const char*)this); } -Fl_Image *Fl_Bitmap::copy(int W, int H) { +Fl_Image *Fl_Bitmap::copy(int W, int H) const { Fl_Bitmap *new_image; // New RGB image uchar *new_array; // New array for image data diff --git a/src/Fl_Pixmap.cxx b/src/Fl_Pixmap.cxx index e6c6cc4c3..e8725102a 100644 --- a/src/Fl_Pixmap.cxx +++ b/src/Fl_Pixmap.cxx @@ -125,7 +125,7 @@ void Fl_Pixmap::copy_data() { alloc_data = 1; } -Fl_Image *Fl_Pixmap::copy(int W, int H) { +Fl_Image *Fl_Pixmap::copy(int W, int H) const { Fl_Pixmap *new_image; // New pixmap if (!data()) { // happens with bad pixmap data return new Fl_Pixmap((char *const*)0); |
