Skip to content

Commit a6f5665

Browse files
authored
Merge pull request #2242 from sass/dp-units
Fix dp unit conversions.
2 parents dfbdf67 + cbe82a6 commit a6f5665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/units.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace Sass {
4444
const double resolution_conversion_factors[3][3] =
4545
{
4646
/* dpi dpcm dppx */
47-
/* dpi */ { 1, 2.54, 96 },
48-
/* dpcm */ { 1/2.54, 1, 96/2.54 },
49-
/* dppx */ { 1/96.0, 2.54/96, 1 }
47+
/* dpi */ { 1, 1/2.54, 1/96.0 },
48+
/* dpcm */ { 2.54, 1, 2.54/96 },
49+
/* dppx */ { 96, 96/2.54, 1 }
5050
};
5151

5252
UnitClass get_unit_type(UnitType unit)

0 commit comments

Comments
 (0)