summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 21:45:17 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-30 21:45:17 +0000
commit6472ca20fbcf08b42dfb8cc20a5066910f038404 (patch)
tree9d0ca74be035d06fbb4e9e8993c824dc179212c0 /chrome/browser
parent9aa1667d95669abbb9282770ec6015581840985b (diff)
downloadchromium_src-6472ca20fbcf08b42dfb8cc20a5066910f038404.zip
chromium_src-6472ca20fbcf08b42dfb8cc20a5066910f038404.tar.gz
chromium_src-6472ca20fbcf08b42dfb8cc20a5066910f038404.tar.bz2
The text in the after translate infobar was incorrect due to an incorrect usage of the std::string substr() API.
BUG=47624 TEST=See bug Review URL: http://codereview.chromium.org/2876024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/translate/translate_infobar_delegate2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/translate/translate_infobar_delegate2.cc b/chrome/browser/translate/translate_infobar_delegate2.cc
index f388a9e..586f0f5 100644
--- a/chrome/browser/translate/translate_infobar_delegate2.cc
+++ b/chrome/browser/translate/translate_infobar_delegate2.cc
@@ -355,6 +355,6 @@ void TranslateInfoBarDelegate2::GetAfterTranslateStrings(
}
strings->push_back(text.substr(0, offsets[0]));
- strings->push_back(text.substr(offsets[0], offsets[1]));
+ strings->push_back(text.substr(offsets[0], offsets[1] - offsets[0]));
strings->push_back(text.substr(offsets[1]));
}