Implement split function.

This commit is contained in:
Jonathan Moore Liles 2008-02-24 01:48:07 -06:00
parent 69fb7a7890
commit 66414fe6b8
1 changed files with 13 additions and 0 deletions

View File

@ -179,6 +179,19 @@ Region::handle ( int m )
case 3:
trim( trimming = RIGHT, X );
break;
case 2:
{
/* split */
if ( ! copied )
{
Region *copy = new Region( *this );
trim( RIGHT, X );
copy->trim( LEFT, X );
_track->add( copy );
}
}
default:
return 0;
break;