From b8a50851fd1bc77fb910bdfdac0eab106a430e6b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 23 Mar 2018 17:03:24 +0000 Subject: Fix Fl_Image::copy() and its versions for derived image classes following the introduction of Fl_Image::scale() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Bitmap.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL/Fl_Bitmap.H') diff --git a/FL/Fl_Bitmap.H b/FL/Fl_Bitmap.H index cb638e66e..03f1a62e8 100644 --- a/FL/Fl_Bitmap.H +++ b/FL/Fl_Bitmap.H @@ -55,7 +55,7 @@ public: Fl_Image(W,H,0), array((const uchar *)bits), alloc_array(0), id_(0), cache_scale_(1) {data((const char **)&array, 1);} virtual ~Fl_Bitmap(); virtual Fl_Image *copy(int W, int H); - Fl_Image *copy() { return copy(w(), h()); } + Fl_Image *copy() { return Fl_Image::copy(); } virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);} virtual void label(Fl_Widget*w); -- cgit v1.2.3