Revision: 868 Author: christian.egli@xxxxxxxxxxxxxx Date: Mon Dec 17 06:43:25 2012 Log: Make sure appliedRules are also updated for the context opcode http://code.google.com/p/liblouis/source/detail?r=868 Modified: /trunk/ChangeLog /trunk/liblouis/lou_translateString.c ======================================= --- /trunk/ChangeLog Mon Dec 17 02:47:51 2012 +++ /trunk/ChangeLog Mon Dec 17 06:43:25 2012 @@ -3,6 +3,8 @@ * liblouis/lou_translateString.c (checkMultCaps): (noCompbrlAhead): Fix the valgrind warnings properly without adding a regression. + (translateString): Make sure appliedRules are also updated for the + context opcode. 2012-12-17 Hammer Attila <hammera@xxxxxxxxx> ======================================= --- /trunk/liblouis/lou_translateString.c Mon Dec 17 02:47:51 2012 +++ /trunk/liblouis/lou_translateString.c Mon Dec 17 06:43:25 2012 @@ -1825,6 +1825,8 @@ switch (transOpcode) { case CTO_Context: + if (appliedRules != NULL && appliedRulesCount < maxAppliedRules) + appliedRules[appliedRulesCount++] = transRule; if (!passDoAction ()) goto failure; if (endReplace == src) For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com