Changeset 7566


Ignore:
Timestamp:
04/19/12 10:21:14 (13 months ago)
Author:
cristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/branches/ImageMagick-6/coders/svg.c

    r7237 r7566  
    27332733} 
    27342734 
    2735 #if defined(MAGICKCORE_RSVG_DELEGATE) 
    2736 static void SVGSetImageSize(int *width,int *height,gpointer context) 
    2737 { 
    2738   Image 
    2739     *image; 
    2740  
    2741   image=(Image *) context; 
    2742   *width=(int) (*width*image->x_resolution/72.0); 
    2743   *height=(int) (*height*image->y_resolution/72.0); 
    2744 } 
    2745 #endif 
    2746  
    27472735#if defined(__cplusplus) || defined(c_plusplus) 
    27482736} 
     
    28462834        ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 
    28472835      rsvg_handle_set_base_uri(svg_handle,image_info->filename); 
    2848       rsvg_handle_set_size_callback(svg_handle,SVGSetImageSize,image,NULL); 
    28492836      if ((image->x_resolution != 72.0) && (image->y_resolution != 72.0)) 
    28502837        rsvg_handle_set_dpi_x_y(svg_handle,image->x_resolution, 
     
    28752862      SetImageProperty(image,"svg:base-uri", 
    28762863        rsvg_handle_get_base_uri(svg_handle)); 
    2877       SetImageProperty(image,"svg:title",rsvg_handle_get_title(svg_handle)); 
    2878       SetImageProperty(image,"svg:description", 
    2879         rsvg_handle_get_desc(svg_handle)); 
    28802864      if ((image->columns == 0) || (image->rows == 0)) 
    28812865        { 
     
    31363120#endif 
    31373121#if defined(MAGICKCORE_RSVG_DELEGATE) 
    3138   rsvg_init(); 
     3122  g_type_init(); 
    31393123  (void) FormatLocaleString(version,MaxTextExtent,"RSVG %d.%d.%d", 
    31403124    LIBRSVG_MAJOR_VERSION,LIBRSVG_MINOR_VERSION,LIBRSVG_MICRO_VERSION); 
Note: See TracChangeset for help on using the changeset viewer.