PR# 10079 Bug in EV_RICH_TEXT.select_region

Problem Report Summary
Submitter: ericbe
Category: EiffelVision
Priority: Medium
Date: 2005/11/28
Class: Bug
Severity: Non-critical
Number: 10079
Release: 5.6.1218
Confidential: No
Status: Open
Responsible: misterieking
Environment: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Synopsis: Bug in EV_RICH_TEXT.select_region

Description
I think that there is a bug in EV_RICH_TEXT.select_region. When the `start_pos' and `end_pos' are the same, e.g.:

    my_rich_text.select_region (2, 2)

EiffelVision actually selects the character between positions 2 and 3. I don't think that I violate any precondition when `start_pos' = `end_pos', but in that case I don't see how both postconditions "has_selection" and "selection_set" can be true. It's either one or the other (provided that "has_selection" really means that something is selected in the text).
To Reproduce

										
Problem Report Interactions