commit | 6079c425a3508170b7def90b561cd93b95a90b2b | [log] [tgz] |
---|---|---|
author | Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> | Tue Oct 20 12:31:00 2020 +0200 |
committer | Niraj Modi <niraj.modi@in.ibm.com> | Fri Nov 13 07:30:27 2020 -0500 |
tree | ba0d0348a56a5a386d8c2b5876dce3cb1d180da7 | |
parent | 2f7f7a8c8b0838357c0975aa340b0c39d6d83d6d [diff] |
Bug 568033 - IllegalArgumentException in StyledText.replaceTextRange() Fixed to no longer throw exception if \r\n were on different lines already. Even though the test snippet reproduces exactly the stack as reported by users, I do feel that users might be having a different problem. This feeling mostly comes from the fact that we only received reports on Windows in combination with 'WM_IME_COMPOSITION', while the snippet reproduces the problem on all 3 platforms. For this reason, I also changed 'DefaultContent.isValidReplace()' to throw 3 different exceptions with additional info to help future debugging if this patch doesn't solve the problem. I didn't find any outside uses of 'DefaultContent.isValidReplace()', so I think that it's OK to remove 'protected' and change signature. Change-Id: I6d0234414e2cad637e029f557e4c9ead213f1db3 Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Thanks for your interest in this project.
See the following description for how to contribute a feature or a bug fix to SWT.
Information regarding source code management, builds, coding standards, and more and be found under the following link.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!