From ef61afe500f7ba58b1fcefaa1ab0205ccb66b5c2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 13 May 2011 10:27:30 +1000 Subject: Break measurement of text into reasonable sized segments similar to drawing. Drawing will now always be broken up at a character boundary even when there is a large number of alphabetic characters. Fixes bug #3165743. --- src/Document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 274aa0baa..7858db727 100644 --- a/src/Document.h +++ b/src/Document.h @@ -275,6 +275,7 @@ public: bool NextCharacter(int &pos, int moveDir); // Returns true if pos changed int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; + int SafeSegment(const char *text, int length, int lengthSegment); // Gateways to modifying document void ModifiedAt(int pos); -- cgit v1.2.3