) const
{
TVertices v = this->GetPath( a );
- path = TPolyLineParametricPath::New( );
+ if( path.IsNull( ) )
+ path = TPolyLineParametricPath::New( );
path->SetReferenceImage( this );
typename TVertices::const_iterator vIt = v.begin( );
for( ; vIt != v.end( ); ++vIt )
) const
{
TVertices v = this->GetPath( a, b );
- path = TPolyLineParametricPath::New( );
+ if( path.IsNull( ) )
+ path = TPolyLineParametricPath::New( );
path->SetReferenceImage( this );
typename TVertices::const_iterator vIt = v.begin( );
for( ; vIt != v.end( ); ++vIt )