Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358531

Summary: [DateTime] Editing with keyboard leads to wrong date under some constellations
Product: [RT] RAP Reporter: angela.maurmann
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: oliver, steffen
Version: unspecified   
Target Milestone: 1.5 M2   
Hardware: All   
OS: All   
Whiteboard:

Description angela.maurmann CLA 2011-09-22 04:28:40 EDT
Build Identifier: 1.4

In a date field (object org.eclipse.swt.widgets.DateTimeDate/object qx.ui.basic.Label) I want to change the content of the field 'day' to "13".
When I try to change a day from "02" to "13" the behavier I see is that the field changes first to "21" an then to "03". So the final result in the field is "03" instead of "13". 
When I try to change a day from "09" to "13" the behavier I see is that the field changes first to "91" an the to "13".
It seem to be that the function always check the intermediate result at once. If it is legal - like in the first case the "21" - the highest digit ("1") is lost. In cases where t is not correct - see "91" in the second example - all the digits are saved.
Is this a feature or a mistake?


Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2011-09-22 08:34:33 EDT
Fixed in CVS HEAD for both DATE and TIME. Now, the new typed number is only appended if the same field was edited before.