diff options
| author | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-08-18 19:59:46 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-08-18 19:59:46 +0000 |
| commit | 3569a1ae56e8bf0e433b8e1773b6802cbdc041c2 (patch) | |
| tree | 7ac43feb9e0be025233b166cef1a1c108ca67d3b /src/extension/dbus/document-interface.cpp | |
| parent | Pass tests while adding & removing objects from class selectors (diff) | |
| parent | Add back icon (this time as a copy) (diff) | |
| download | inkscape-3569a1ae56e8bf0e433b8e1773b6802cbdc041c2.tar.gz inkscape-3569a1ae56e8bf0e433b8e1773b6802cbdc041c2.zip | |
Merge changes from trunk
(bzr r14949.1.69)
Diffstat (limited to 'src/extension/dbus/document-interface.cpp')
| -rw-r--r-- | src/extension/dbus/document-interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extension/dbus/document-interface.cpp b/src/extension/dbus/document-interface.cpp index 5a8fb0918..667830997 100644 --- a/src/extension/dbus/document-interface.cpp +++ b/src/extension/dbus/document-interface.cpp @@ -405,7 +405,7 @@ document_interface_polygon (DocumentInterface *doc_interface, int cx, int cy, int radius, int rotation, int sides, GError **error) { - gdouble rot = ((rotation / 180.0) * 3.14159265) - ( 3.14159265 / 2.0); + gdouble rot = ((rotation / 180.0) * M_PI) - M_PI_2; Inkscape::XML::Node *newNode = dbus_create_node(doc_interface->target.getDocument(), "svg:path"); newNode->setAttribute("inkscape:flatsided", "true"); newNode->setAttribute("sodipodi:type", "star"); |
