src/lib/CDRContentCollector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7b6657f598ef5993c454d7bf3a9cf660e4f25db5 Author: David Tardon <dtar...@redhat.com> Date: Thu Apr 25 16:00:27 2013 +0200 fdo#63734 angle is represented internally in radians diff --git a/src/lib/CDRContentCollector.cpp b/src/lib/CDRContentCollector.cpp index a4fbbcd..b6ed4a8 100644 --- a/src/lib/CDRContentCollector.cpp +++ b/src/lib/CDRContentCollector.cpp @@ -661,7 +661,7 @@ void libcdr::CDRContentCollector::_fillProperties(WPXPropertyList &propList, WPX } else if (m_currentFillStyle.gradient.m_stops.size() == 2) { - double angle = m_currentFillStyle.gradient.m_angle; + double angle = m_currentFillStyle.gradient.m_angle * 180 / M_PI; while (angle < 0.0) angle += 360.0; while (angle > 360.0) @@ -719,7 +719,7 @@ void libcdr::CDRContentCollector::_fillProperties(WPXPropertyList &propList, WPX { propList.insert("draw:fill", "gradient"); propList.insert("draw:style", "linear"); - double angle = m_currentFillStyle.gradient.m_angle; + double angle = m_currentFillStyle.gradient.m_angle * 180 / M_PI; angle += 90.0; while (angle < 0.0) angle += 360.0; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits