~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

Viewing changes to plug-ins/common/file-pdf.c

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2009-08-14 09:57:17 UTC
  • mto: (1.1.21 upstream) (0.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 48.
  • Revision ID: james.westby@ubuntu.com-20090814095717-37dh2xqy5t0rurpk
ImportĀ upstreamĀ versionĀ 2.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1279
1279
{
1280
1280
  g_return_val_if_fail (GIMP_IS_RESOLUTION_ENTRY (gre), 0);
1281
1281
 
1282
 
  return gre->x.value / gimp_unit_get_factor (gre->unit);
 
1282
  /* dots_in_one_unit * units_in_one_inch -> dpi */
 
1283
  return gre->x.value * gimp_unit_get_factor (gre->unit);
1283
1284
}
1284
1285
 
1285
1286
/**
1293
1294
{
1294
1295
  g_return_val_if_fail (GIMP_IS_RESOLUTION_ENTRY (gre), 0);
1295
1296
 
1296
 
  return gre->y.value / gimp_unit_get_factor (gre->unit);
 
1297
  return gre->y.value * gimp_unit_get_factor (gre->unit);
1297
1298
}
1298
1299
 
1299
1300