summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfa/fde/cfde_texteditengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fde/cfde_texteditengine.cpp b/xfa/fde/cfde_texteditengine.cpp
index 6c1e8dcc6c..71b413c35f 100644
--- a/xfa/fde/cfde_texteditengine.cpp
+++ b/xfa/fde/cfde_texteditengine.cpp
@@ -439,10 +439,9 @@ size_t CFDE_TextEditEngine::GetIndexLeft(size_t pos) const {
return 0;
--pos;
- wchar_t ch;
while (pos != 0) {
// We want to be on the location just before the \r or \n
- ch = GetChar(pos - 1);
+ wchar_t ch = GetChar(pos - 1);
if (ch != '\r' && ch != '\n')
break;