Changeset 1396:0f4ea3883bdc


Ignore:
Timestamp:
11/05/09 19:20:01 (2 years ago)
Author:
niam
Branch:
default
Message:

graphics::image: fixed writing to image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/src/graphicsImage.cc

    r1395 r1396  
    433433 
    434434    size_t size = 0; 
    435     unsigned char *imData = ImageToBlob(collectedData.handle->imInfo, collectedData.handle->im, (size_t *)&size, (ExceptionInfo *)exInfo); 
    436     if (imData == NULL) 
     435    unsigned char *data = ImageToBlob(collectedData.handle->imInfo, collectedData.handle->im, (size_t *)&size, (ExceptionInfo *)exInfo); 
     436    if (data == NULL) 
    437437        throw exception::basic(exception::MODULE_GRAPHICSIMAGE, IMAGEEX_WRITE, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description ? ((ExceptionInfo *)exInfo)->description : __dodostring__); 
    438438 
    439439    img.bs = size; 
    440     img.write((char *)imData); 
     440    img.write(dodoString((char *)data, size)); 
    441441 
    442442#ifndef GRAPHICS_WO_XEXEC 
Note: See TracChangeset for help on using the changeset viewer.