summaryrefslogtreecommitdiff
path: root/src/modules/filters/gbfheadings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/filters/gbfheadings.cpp')
-rw-r--r--src/modules/filters/gbfheadings.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/filters/gbfheadings.cpp b/src/modules/filters/gbfheadings.cpp
index 7e19ea1..a679924 100644
--- a/src/modules/filters/gbfheadings.cpp
+++ b/src/modules/filters/gbfheadings.cpp
@@ -3,7 +3,7 @@
* gbfheadings.cpp - SWFilter descendant to hide or show headings
* in a GBF module
*
- * $Id: gbfheadings.cpp 2980 2013-09-14 21:51:47Z scribe $
+ * $Id: gbfheadings.cpp 3427 2016-07-03 14:30:33Z scribe $
*
* Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -93,11 +93,13 @@ char GBFHeadings::processText(SWBuf &text, const SWKey *key, const SWModule *mod
continue;
}
if (intoken) {
- if (tokpos < 2045)
+ if (tokpos < 2045) {
token[tokpos++] = *from;
+ // TODO: why is this + 2 ?
token[tokpos+2] = 0;
+ }
}
- else {
+ else {
if (!hide) {
text += *from;
}