Revision: 910 Author: john.boyer@xxxxxxxxxxxxxxxxx Date: Tue Jan 29 13:36:50 2013 Log: Change calculation of cursorPos http://code.google.com/p/liblouis/source/detail?r=910 Modified: /trunk/liblouis/lou_translateString.c ======================================= --- /trunk/liblouis/lou_translateString.c Mon Dec 17 06:43:25 2012 +++ /trunk/liblouis/lou_translateString.c Tue Jan 29 13:36:50 2013 @@ -260,7 +260,12 @@ srcSpacing[srcmax] = 0; } if (cursorPos != NULL) + { + if (outputPos != NULL) + *cursorPos = outputPos[*cursorPos]; + else *cursorPos = cursorPosition; + } if (rulesLen != NULL) *rulesLen = appliedRulesCount; return goodTrans; For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com