summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-25 16:00:27 +0200
committerDavid Tardon <dtardon@redhat.com>2013-04-25 16:00:27 +0200
commit7b6657f598ef5993c454d7bf3a9cf660e4f25db5 (patch)
treed0dd00535f0c9318c450e6b1b7b3d61c9b0a4f83 /src
parent530725355fd76ae2a0d2adb4c9d6e6920d5f3933 (diff)
fdo#63734 angle is represented internally in radians
Diffstat (limited to 'src')
-rw-r--r--src/lib/CDRContentCollector.cpp4
1 files changed, 2 insertions, 2 deletions
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;