Changeset 13206


Ignore:
Timestamp:
Mar 6, 2012 1:15:39 PM (5 years ago)
Author:
aboudreault
Message:

Fixed raster window offset when the layer is less than half a pixel (on boundaries)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mapserver/mapdrawgdal.c

    r13027 r13206  
    253253        /* We want very small windows to use at least one source pixel (#4172) */
    254254        if( src_xsize == 0 && (urx - llx) > 0.0 )
     255        {
    255256            src_xsize = 1;
     257            src_xoff = MIN(src_xoff,GDALGetRasterXSize(hDS)-1);
     258        }
    256259        if( src_ysize == 0 && (lly - ury) > 0.0 )
     260        {
    257261            src_ysize = 1;
     262            src_yoff = MIN(src_yoff,GDALGetRasterYSize(hDS)-1);
     263        }
    258264
    259265        if( src_xsize == 0 || src_ysize == 0 )
Note: See TracChangeset for help on using the changeset viewer.