Merge pull request #666 from ShishKabab/patch-1

Fix wrong degree to radian conversion in trig function. Might break some...
This commit is contained in:
Scott Davis 2012-01-18 16:49:07 -08:00
commit be7b419479

View File

@ -19,7 +19,7 @@ module Compass::SassExtensions::Functions::Trig
private
def trig(operation, number)
if number.numerator_units == ["deg"] && number.denominator_units == []
Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 360))
Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 180))
else
Sass::Script::Number.new(Math.send(operation, number.value), number.numerator_units, number.denominator_units)
end