Author: manolo
Date: 2012-03-14 02:51:22 -0700 (Wed, 14 Mar 2012)
New Revision: 9283
Log:
Moved a few local variable declarations.

Modified:
   branches/branch-1.3/src/Fl_Image.cxx

Modified: branches/branch-1.3/src/Fl_Image.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Image.cxx        2012-03-14 08:49:36 UTC (rev 
9282)
+++ branches/branch-1.3/src/Fl_Image.cxx        2012-03-14 09:51:22 UTC (rev 
9283)
@@ -461,11 +461,11 @@
   if (start(img, XP, YP, WP, HP, img->w(), img->h(), cx, cy, X, Y, W, H)) {
     return;
   }
-  CGDataProviderReleaseDataCallback release_cb = NULL;
-  const uchar* img_bytes = img->array;
-  int ld = img->ld();
   if (!img->id_) {
     CGColorSpaceRef lut = 0;
+    CGDataProviderReleaseDataCallback release_cb = NULL;
+    const uchar* img_bytes = img->array;
+    int ld = img->ld();
     if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
       // when printing, duplicate the image data so it can be deleted later, 
at page end
       release_cb = imgProviderReleaseData;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to