BF [ 1898001 ] AutoComplete: Exception when selecting a text
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1898001&group_id=176962
This commit is contained in:
parent
e3ff98f1ff
commit
310b120d97
|
@ -33,6 +33,7 @@ import org.compiere.swing.CComboBox;
|
||||||
* <li>BF [ 1735043 ] AutoCompletion: drop down box is showed even if i press Caps
|
* <li>BF [ 1735043 ] AutoCompletion: drop down box is showed even if i press Caps
|
||||||
* <li>FR [ 1820783 ] AutoCompletion: posibility to toggle strict mode
|
* <li>FR [ 1820783 ] AutoCompletion: posibility to toggle strict mode
|
||||||
* <li>BF [ 1820778 ] ESC(cancel editing) key not working if you are on VComboBox
|
* <li>BF [ 1820778 ] ESC(cancel editing) key not working if you are on VComboBox
|
||||||
|
* <li>BF [ 1898001 ] AutoComplete: Exception when selecting a text
|
||||||
* <li>FR [ 2552854 ] Combobox AutoCompletion should ignore diacritics
|
* <li>FR [ 2552854 ] Combobox AutoCompletion should ignore diacritics
|
||||||
*/
|
*/
|
||||||
public class AutoCompletion extends PlainDocument {
|
public class AutoCompletion extends PlainDocument {
|
||||||
|
@ -225,6 +226,8 @@ public class AutoCompletion extends PlainDocument {
|
||||||
|
|
||||||
private void highlightCompletedText(int start) {
|
private void highlightCompletedText(int start) {
|
||||||
editor.setCaretPosition(getLength());
|
editor.setCaretPosition(getLength());
|
||||||
|
if (getLength() < start)
|
||||||
|
start = getLength();
|
||||||
editor.moveCaretPosition(start);
|
editor.moveCaretPosition(start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue