summaryrefslogtreecommitdiffstats
path: root/src/svg/gnome-canvas-bpath-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg/gnome-canvas-bpath-util.cpp')
-rw-r--r--src/svg/gnome-canvas-bpath-util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svg/gnome-canvas-bpath-util.cpp b/src/svg/gnome-canvas-bpath-util.cpp
index 5c94f1e1b..bd55bfb10 100644
--- a/src/svg/gnome-canvas-bpath-util.cpp
+++ b/src/svg/gnome-canvas-bpath-util.cpp
@@ -35,6 +35,7 @@ static bool isApproximatelyClosed(GnomeCanvasBpathDef *bpd) {
int const initial = bpd->moveto_idx;
int const current = bpd->n_bpath - 1;
NR::Point distToInit(distTo(bpd, current, initial));
+ // TODO check the double to int conversion in the abs() call:
return
distToInit[NR::X] <= abs(bpd->bpath[current].c(3)[NR::X])*precision &&
distToInit[NR::Y] <= abs(bpd->bpath[current].c(3)[NR::Y])*precision;