]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/image.h
changed wxImage::Rescale() to return wxImage& and not void
[wxWidgets.git] / include / wx / image.h
index 93d16b3778fdbc887b86ffbaf0d34d8506367017..bbe0f2e6f9b0b9ab0f4a4b132decb2170858ee91 100644 (file)
@@ -255,7 +255,7 @@ public:
   wxImage Scale( int width, int height ) const;
 
   // rescales the image in place
-  void Rescale( int width, int height ) { *this = Scale(width, height); }
+  wxImage& Rescale( int width, int height ) { return *this = Scale(width, height); }
 
   // these routines are slow but safe
   void SetRGB( int x, int y, unsigned char r, unsigned char g, unsigned char b );