diff options
Diffstat (limited to 'src/Text.cpp')
-rw-r--r-- | src/Text.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Text.cpp b/src/Text.cpp index 9c6bc86..b463f92 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -615,11 +615,8 @@ namespace QuickMedia int Text::getStartOfWord(int startIndex) const { assert(!dirty && !dirtyText); - int start_line = get_vertex_line(startIndex); bool start_is_special_char = is_special_character(get_vertex_codepoint(startIndex - 1)); for(int i = startIndex - 1; i >= 0; --i) { - if(get_vertex_line(i) != start_line) - return i + 1; bool is_special_char = is_special_character(vertices_linear[i].codepoint); if(is_special_char != start_is_special_char) return i + 1; @@ -630,11 +627,8 @@ namespace QuickMedia int Text::getEndOfWord(int startIndex) const { assert(!dirty && !dirtyText); const int num_vertices = vertices_linear.size(); - int start_line = get_vertex_line(startIndex); bool start_is_special_char = is_special_character(get_vertex_codepoint(startIndex)); for(int i = startIndex + 1; i < num_vertices; ++i) { - if(get_vertex_line(i) != start_line) - return i - 1; bool is_special_char = is_special_character(vertices_linear[i].codepoint); if(is_special_char != start_is_special_char) return i; |