fixed sf.net bug #452, trim two failed, when trim entity starts/ends on limiting entity