diff options
Diffstat (limited to 'src/modules/filters/gbfmorph.cpp')
-rw-r--r-- | src/modules/filters/gbfmorph.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/filters/gbfmorph.cpp b/src/modules/filters/gbfmorph.cpp index 3399ae8..cf1405b 100644 --- a/src/modules/filters/gbfmorph.cpp +++ b/src/modules/filters/gbfmorph.cpp @@ -3,7 +3,7 @@ * gbfmorph.cpp - SWFilter descendant to hide or show morph tags * in a GBF module * - * $Id: gbfmorph.cpp 2980 2013-09-14 21:51:47Z scribe $ + * $Id: gbfmorph.cpp 3427 2016-07-03 14:30:33Z scribe $ * * Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -84,11 +84,13 @@ char GBFMorph::processText(SWBuf &text, const SWKey *key, const SWModule *module continue; } if (intoken) { - if (tokpos < 2045) + if (tokpos < 2045) { token[tokpos++] = *from; + // TODO: why is this + 2 ? token[tokpos+2] = 0; + } } - else { + else { text += *from; lastspace = (*from == ' '); } |