diff options
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2013-05-22 10:22:07 -0400 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2013-05-22 10:23:52 -0400 |
commit | a1e0ef96d65e6ef2f4c5b16924d15cef55932534 (patch) | |
tree | 620db63b028a852f619261ac400b2c197c48668b | |
parent | f6a9faea76ab3f42d0301599acb7315834790e40 (diff) | |
download | eclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.tar.gz eclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.tar.xz eclipse.platform.swt-a1e0ef96d65e6ef2f4c5b16924d15cef55932534.zip |
Bug 408298 - Clear text in Text.getTextChars()
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java index b17d087498..1d98c385ab 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java @@ -1381,6 +1381,7 @@ public char[] getTextChars () { if (segments != null) buffer = deprocessText (buffer, 0, -1, false); char [] chars = new char [length]; System.arraycopy (buffer.chars, 0, chars, 0, length); + for (int i = 0; i < buffer.chars.length; i++) buffer.chars [i] = '\0'; return chars; } |