Unverified Commit bfcb7fc5 authored by Tobias's avatar Tobias

file-pnm: Remove clamping when loading PFM files

parent 0fa2230e
......@@ -1020,7 +1020,10 @@ pnm_load_rawpfm (PNMScanner *scan,
* little vague about what the scale factor should be used
* for */
data[x] *= fabsf (info->scale_factor);
data[x] = fmaxf (0.0f, fminf (FLT_MAX, data[x]));
/* Keep values smaller than zero. That is in line with what the
* TIFF loader does. If the user doesn't want the negative numbers
* he has to get rid of them afterwards */
/* data[x] = fmaxf (0.0f, fminf (FLT_MAX, data[x])); */
}
gegl_buffer_set (buffer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment