if (data->preserve_aspect_ratio && (data->width > 0 || data->height > 0))
{
- if (width < data->width && height < data->height)
- {
- width = width;
- height = height;
- }
-
if (data->width < 0)
{
width = width * (double) data->height / (gdouble) height;