summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-01-05 15:30:09 +0000
committerJabiertxof <jtx@jtx.marker.es>2016-01-05 15:30:09 +0000
commit695d61abbef5af697f01e1b046e5ecc89c9aab80 (patch)
treeadc4297c6bb9e4a9b188cabe3849d4bb946cc335 /src
parentRemove two path requirement, there is some really good functionality with mul... (diff)
downloadinkscape-695d61abbef5af697f01e1b046e5ecc89c9aab80.tar.gz
inkscape-695d61abbef5af697f01e1b046e5ecc89c9aab80.zip
Improve constant definitions
(bzr r14561)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-bspline.cpp4
-rw-r--r--src/ui/tool/node.cpp2
-rw-r--r--src/ui/tool/path-manipulator.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-bspline.cpp b/src/live_effects/lpe-bspline.cpp
index 7e92e767d..1423e670a 100644
--- a/src/live_effects/lpe-bspline.cpp
+++ b/src/live_effects/lpe-bspline.cpp
@@ -20,8 +20,8 @@ namespace LivePathEffect {
const double HANDLE_CUBIC_GAP = 0.001;
const double NO_POWER = 0.0;
-const double DEFAULT_START_POWER = 0.333334;
-const double DEFAULT_END_POWER = 0.666667;
+const double DEFAULT_START_POWER = 1.0/3.0;
+const double DEFAULT_END_POWER = 2.0/3.0;
Geom::PathVector hp;
void sp_bspline_drawHandle(Geom::Point p, double helper_size);
diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp
index 06e49dc7f..d70147f80 100644
--- a/src/ui/tool/node.cpp
+++ b/src/ui/tool/node.cpp
@@ -61,7 +61,7 @@ namespace Inkscape {
namespace UI {
const double NO_POWER = 0.0;
-const double DEFAULT_START_POWER = 0.333334;
+const double DEFAULT_START_POWER = 1.0/3.0;
ControlPoint::ColorSet Node::node_colors = {
{0xbfbfbf00, 0x000000ff}, // normal fill, stroke
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index fb9e2c070..01dbf13e9 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -58,7 +58,7 @@ enum PathChange {
} // anonymous namespace
const double HANDLE_CUBIC_GAP = 0.001;
const double NO_POWER = 0.0;
-const double DEFAULT_START_POWER = 0.333334;
+const double DEFAULT_START_POWER = 1.0/3.0;
/**