From 275e0c25ae6cf1568099509682417b1c8ae60911 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Aug 2009 10:48:18 +0000 Subject: Avoid breaking text into substrings on selection boundaries for drawing when the selection is empty (thus only needing a caret drawn) or when the selection settings do not need the text drawn as pieces such as when the selection is drawn translucently. --- src/PositionCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PositionCache.h') diff --git a/src/PositionCache.h b/src/PositionCache.h index a86881070..e99ae5870 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -136,7 +136,7 @@ class BreakFinder { int subBreak; void Insert(int val); public: - BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, bool utf8_, int xStart); + BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, bool utf8_, int xStart, bool breakForSelection); ~BreakFinder(); int First(); int Next(); -- cgit v1.2.3