< prev index next >

jdk/src/java.desktop/windows/native/libawt/windows/awt_TextComponent.cpp

Print this page

        

*** 509,519 **** m_isLFonly = FALSE; } else { m_isLFonly = TRUE; } m_EOLchecked = TRUE; - return; } } } void AwtTextComponent::SetSelRange(LONG start, LONG end) --- 509,518 ----
*** 588,597 **** --- 587,597 ---- WCHAR* buffer = new WCHAR[length + 1]; env->GetStringRegion(text, 0, length, reinterpret_cast<jchar*>(buffer)); buffer[length] = 0; c->CheckLineSeparator(buffer); c->RemoveCR(buffer); + c->RemoveEOL(buffer); c->SetText(buffer); delete[] buffer; } ret: env->DeleteGlobalRef(self);
< prev index next >