* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: OuterDocumentView.java,v 1.3 2004-09-25 22:42:52 jsurfer Exp $
+ * $Id: OuterDocumentView.java,v 1.4 2004-11-12 20:15:58 axelcl Exp $
*/
package net.sourceforge.phpeclipse.ui.text.rules;
localOffset -= range.length;
}
// TODO jsurfer change start - check this
-// if (localOffset<0) {
-// return 0;
-// }
+ if (localOffset<0) {
+ return 0;
+ } else if (localOffset>getLength()) {
+ return getLength();
+ }
// jsurfer change end
return localOffset;
}