mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:51:55 +00:00
Ignore density if unit is 0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40429 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c774fd75c3
commit
90d793695b
2 changed files with 7 additions and 1 deletions
|
@ -521,7 +521,8 @@ static void gs_jpeg_memory_dest_destroy (j_compress_ptr cinfo)
|
|||
y_density = y_density * 2.54;
|
||||
}
|
||||
|
||||
if (!(x_density == 72 && y_density == 72))
|
||||
/* consider density only if we have a valid unit */
|
||||
if (d_unit && !(x_density == 72 && y_density == 72))
|
||||
{
|
||||
NSSize pointSize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue