Please sign in to comment.
PIVOT-992: Change the "getSelectedText" method of TextPane to just us…
…e the equivalent call to "getText(start, finish)" instead of doing a "getSelectedRange()" and serializing that. The results will be different in that if the selection doesn't actually encompass an end of line, then the result will not contain a spurious newline. The difference affects find/replace operations (for instance) that would be calling "getSelectedText" and doing a find operation on a piece of text that doesn't actually appear in the document (like "abc\n"). I suspect that this new method is actually a bit faster than the old way, although that probably makes little to no difference in actual use. git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1783447 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information...
Showing with 1 addition and 16 deletions.