summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-04 02:08:21 +0000
committermental <mental@users.sourceforge.net>2007-03-04 02:08:21 +0000
commit4f7fe42548e3f91dffc8df220c04f16911497346 (patch)
treee72476964c14896870222829d38e55f387ed3995 /src/object-snapper.cpp
parentremove debug messages that sneaked in (diff)
downloadinkscape-4f7fe42548e3f91dffc8df220c04f16911497346.tar.gz
inkscape-4f7fe42548e3f91dffc8df220c04f16911497346.zip
make conversions away from NR::Maybe explicit
(bzr r2530)
Diffstat (limited to 'src/object-snapper.cpp')
-rw-r--r--src/object-snapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index 6b51f8508..4a21cbc04 100644
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
@@ -128,7 +128,7 @@ void Inkscape::ObjectSnapper::_snapPaths(Inkscape::SnappedPoint &s,
/* Look for the nearest position on this SPItem to our snap point */
NR::Maybe<Path::cut_position> const o = get_nearest_position_on_Path(livarot_path, p_it);
- if (o != NR::Nothing() && o.assume().t >= 0 && o.assume().t <= 1) {
+ if (o && o->t >= 0 && o->t <= 1) {
/* Convert the nearest point back to desktop coordinates */
NR::Point const o_it = get_point_on_Path(livarot_path, o.assume().piece, o.assume().t);