Index: ui/gfx/selection_model.cc |
=================================================================== |
--- ui/gfx/selection_model.cc (revision 103192) |
+++ ui/gfx/selection_model.cc (working copy) |
@@ -15,7 +15,10 @@ |
} |
SelectionModel::SelectionModel(size_t start, size_t end) { |
- Init(start, end, end, LEADING); |
+ if (start < end) |
msw
2011/09/29 02:20:21
Perhaps this condition deserves an explanation:
"T
xji
2011/10/03 23:18:57
this ctor is removed.
|
+ Init(start, end, end, TRAILING_OF_PREVIOUS_GRAPHEME); |
+ else |
+ Init(start, end, end, LEADING); |
} |
SelectionModel::SelectionModel(size_t end, |