summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-29 13:56:28 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-29 13:56:28 +0000
commit2fd1cf044f3497f93c1c5de48e3bde1174eecc11 (patch)
tree9c41153188715aba6dada1834594a97a35cdd76b /src/display/curve.cpp
parentremove unused function first_bpath (diff)
downloadinkscape-2fd1cf044f3497f93c1c5de48e3bde1174eecc11.tar.gz
inkscape-2fd1cf044f3497f93c1c5de48e3bde1174eecc11.zip
return results from 2geom path instead of old path
(bzr r6092)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index e80b668d6..af26fdda4 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -854,10 +854,10 @@ SPCurve::is_empty() const
if (!_bpath)
return true;
- bool empty = _pathv.empty(); /* || _pathv.front().empty(); */
+ bool empty = _pathv.empty() || _pathv.front().empty();
debug_check("SPCurve::is_empty", (_bpath->code == NR_END) == empty );
- return (_bpath->code == NR_END);
+ return empty;
}
/**
@@ -876,7 +876,7 @@ SPCurve::is_closed() const
}
debug_check("SPCurve::is_closed", (closed) == (_closed) );
- return _closed;
+ return closed;
}
/**
@@ -971,8 +971,8 @@ SPCurve::first_point() const
debug_check("SPCurve::first_point", bpath->c(3) == _pathv.front().initialPoint() );
- return bpath->c(3);
- // return from_2geom( _pathv.front().initialPoint() );
+ //return bpath->c(3);
+ return from_2geom( _pathv.front().initialPoint() );
}
/**