summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/native_textfield_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/textfield/native_textfield_win.cc')
-rw-r--r--views/controls/textfield/native_textfield_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc
index 6bae442..e152dbe 100644
--- a/views/controls/textfield/native_textfield_win.cc
+++ b/views/controls/textfield/native_textfield_win.cc
@@ -664,11 +664,12 @@ void NativeTextfieldWin::OnPaste() {
return;
Clipboard* clipboard = ViewsDelegate::views_delegate->GetClipboard();
- if (!clipboard->IsFormatAvailable(Clipboard::GetPlainTextWFormatType()))
+ if (!clipboard->IsFormatAvailable(Clipboard::GetPlainTextWFormatType(),
+ Clipboard::BUFFER_STANDARD))
return;
std::wstring clipboard_str;
- clipboard->ReadText(&clipboard_str);
+ clipboard->ReadText(Clipboard::BUFFER_STANDARD, &clipboard_str);
if (!clipboard_str.empty()) {
std::wstring collapsed(CollapseWhitespace(clipboard_str, false));
if (textfield_->style() & Textfield::STYLE_LOWERCASE)