Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8741)

Unified Diff: chrome/renderer/render_view.cc

Issue 553103: Spellchecker: fix render view auto-suggest context menu items... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 37153)
+++ chrome/renderer/render_view.cc (working copy)
@@ -1708,12 +1708,12 @@
ContextMenuParams params = ContextMenuParams(data);
if (!params.misspelled_word.empty() && RenderThread::current()) {
int misspelled_offset, misspelled_length;
- bool misspelled = RenderThread::current()->spellchecker()->SpellCheckWord(
+ bool spelled_right = RenderThread::current()->spellchecker()->SpellCheckWord(
Evan Martin 2010/01/26 22:36:00 80
params.misspelled_word.c_str(), params.misspelled_word.size(),
document_tag_,
&misspelled_offset, &misspelled_length,
&params.dictionary_suggestions);
- if (!misspelled)
+ if (spelled_right)
params.misspelled_word.clear();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698