diff options
Diffstat (limited to 'src/2geom/path.h')
| -rw-r--r-- | src/2geom/path.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/path.h b/src/2geom/path.h index 04b77862c..1b59ea011 100644 --- a/src/2geom/path.h +++ b/src/2geom/path.h @@ -306,7 +306,7 @@ public: { THROW_RANGEERROR("parameter t out of bounds"); } - if ( empty() ) return Point(0,0); + if ( empty() ) return initialPoint(); // naked moveto double k, lt = modf(t, &k); unsigned int i = static_cast<unsigned int>(k); if ( i == sz ) @@ -325,7 +325,7 @@ public: { THROW_RANGEERROR("parameter t out of bounds"); } - if ( empty() ) return 0; + if ( empty() ) return initialPoint()[d]; // naked moveto double k, lt = modf(t, &k); unsigned int i = static_cast<unsigned int>(k); if ( i == sz ) |
