From 317999bc4efd076848eaa7a8348cee54352c7c58 Mon Sep 17 00:00:00 2001 From: ShishKabab Date: Sun, 8 Jan 2012 13:54:58 +0100 Subject: [PATCH] Fix wrong degree to radian conversion in trig function. Might break some stylesheets for users so proceed with caution! --- lib/compass/sass_extensions/functions/trig.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/sass_extensions/functions/trig.rb b/lib/compass/sass_extensions/functions/trig.rb index 95c38508..8e87ab4b 100644 --- a/lib/compass/sass_extensions/functions/trig.rb +++ b/lib/compass/sass_extensions/functions/trig.rb @@ -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