summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/node-tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tools/node-tool.cpp')
-rw-r--r--src/ui/tools/node-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/node-tool.cpp b/src/ui/tools/node-tool.cpp
index cceaca7cb..4149403ea 100644
--- a/src/ui/tools/node-tool.cpp
+++ b/src/ui/tools/node-tool.cpp
@@ -495,7 +495,7 @@ bool NodeTool::root_handler(GdkEvent* event) {
// We will show a pre-snap indication for when the user adds a node through double-clicking
// Adding a node will only work when a path has been selected; if that's not the case then snapping is useless
- if (not this->desktop->selection->isEmpty()) {
+ if (!this->desktop->selection->isEmpty()) {
if (!(event->motion.state & GDK_SHIFT_MASK)) {
m.setup(this->desktop);
Inkscape::SnapCandidatePoint scp(motion_dt, Inkscape::SNAPSOURCE_OTHER_HANDLE);
@@ -678,7 +678,7 @@ void NodeTool::update_tip(GdkEvent *event) {
}
}
g_assert(positions.size() == 2);
- const double angle = Geom::rad_to_deg(Geom::Line(positions[0], positions[1]).angle());
+ const double angle = Geom::deg_from_rad(Geom::Line(positions[0], positions[1]).angle());
nodestring = g_strdup_printf("<b>%u of %u</b> nodes selected, angle: %.2f°.", sz, total, angle);
}
else {