[liblouis-liblouisxml] [liblouis] r910 committed - Change calculation of cursorPos

  • From: liblouis@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 29 Jan 2013 21:36:59 +0000

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

Other related posts:

  • » [liblouis-liblouisxml] [liblouis] r910 committed - Change calculation of cursorPos - liblouis