Changes between Version 6 and Version 7 of TEXT_POSITION_KIND
- Timestamp:
- 02/25/10 12:55:08 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TEXT_POSITION_KIND
v6 v7 44 44 * ImmHotText:changePosKind function is removed.(no longer needed) 45 45 * In ImmHotText:ElemeOp:InsertOp:updatePastIndex the index that is >= from the InsertOp's position should be updated(the logic is that you insert before the given index so the given index also should be updated)(this is really a mystery to me how the previos text has updated only the indexes that were > from the position...sholud have had troubles...so maybe some ugly dirty fix is inserted somewhere to reduce the exceptions...but I haven't managed to find it yet...) 46 * In ImmHotText:getIndex change the way of getting the indexes from the text. The logic is changed as follows: 47 * if the uid of the pos is grater than the current text id the pos index is updated with it's update future index. 48 * In TextFlowLogic:ON_SWITCH_STYLE if the selection interval is with equal begin and end poses set the selection interval to the previous word before the caret pos. This must be done because now we don't have style on between poses(we don't have between poses) and cannot get the style of an empty interval any more. 46 49 source of the tests may be found here: [8668] 47 50 Note: some of the tests are changed because of the changed logic(the exclusion of the interval that the styles are applied to).And the last test sholud not pass yet(it's fixing is related to another ticket but is a good test so I won't remove it :)). … … 53 56 source of the task may be found here: [8668] [8676] [8685] (the assert was wrong - the last changed interval can end on index that is grater than the 54 57 length of a subtext but the total length of the changed interval cannot be grater than the length of the text). 55 58 [8713] [8715] 56 59 = Testing = 57 60 ^(Place the testing results here.)^