diff options
author | Neil <nyamatongwe@gmail.com> | 2013-06-29 20:32:52 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-06-29 20:32:52 +1000 |
commit | d9f1a1b042f9458f2d4a905f20b9547c4ac2be70 (patch) | |
tree | 4db1263c22fcca231b754d8de86f1f5bb484fb87 /src/Document.h | |
parent | 05cdbbd2ec9de91787c9306798669532c8779248 (diff) | |
download | scintilla-mirror-d9f1a1b042f9458f2d4a905f20b9547c4ac2be70.tar.gz |
Bug: [#1483]. Split GetRelativePosition into 2 calls one for moving between character
positions and the other for retrieving a character and width.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Document.h b/src/Document.h index 8eb8db74a..5c7e8f8a0 100644 --- a/src/Document.h +++ b/src/Document.h @@ -279,7 +279,8 @@ public: int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); int NextPosition(int pos, int moveDir) const; bool NextCharacter(int &pos, int moveDir) const; // Returns true if pos changed - int SCI_METHOD GetRelativePosition(int start, int characterOffset, int *character, int *width) const; + int SCI_METHOD GetRelativePosition(int positionStart, int characterOffset) const; + int SCI_METHOD GetCharacterAndWidth(int position, int *pWidth) const; int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; int SafeSegment(const char *text, int length, int lengthSegment) const; |