diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-07-19 19:08:24 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-07-19 19:08:24 +0000 |
| commit | 4d84edcf25468530660a441c55544c7db27c2682 (patch) | |
| tree | 21de3f17dc0fdc1d00f6493941e9a043a4ef7f50 /src/pen-context.cpp | |
| parent | Removed "helper/units.h" from "selection-chemistry.cpp". (diff) | |
| download | inkscape-4d84edcf25468530660a441c55544c7db27c2682.tar.gz inkscape-4d84edcf25468530660a441c55544c7db27c2682.zip | |
Removed "helper/units.h" from "pen-context.cpp".
(bzr r12380.1.38)
Diffstat (limited to 'src/pen-context.cpp')
| -rw-r--r-- | src/pen-context.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 5972a6ca8..eac2ce5d1 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -39,7 +39,6 @@ #include "display/sp-ctrlline.h" #include "display/sodipodi-ctrl.h" #include <glibmm/i18n.h> -#include "helper/units.h" #include "macros.h" #include "context-fns.h" #include "tools-switch.h" @@ -1188,8 +1187,12 @@ static void spdc_pen_set_angle_distance_status_message(SPPenContext *const pc, G GString *dist = SP_PX_TO_METRIC_STRING(Geom::L2(rel), desktop->namedview->getDefaultMetric()); double angle = atan2(rel[Geom::Y], rel[Geom::X]) * 180 / M_PI; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - if (prefs->getBool("/options/compassangledisplay/value", 0) != 0) - angle = angle_to_compass (angle); + if (prefs->getBool("/options/compassangledisplay/value", 0) != 0) { + angle = 90 - angle; + if (angle < 0) { + angle += 360; + } + } pc->_message_context->setF(Inkscape::IMMEDIATE_MESSAGE, message, angle, dist->str); g_string_free(dist, FALSE); |
