summaryrefslogtreecommitdiff
path: root/bindings/corba/omniorbcpp/swordorb-impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/corba/omniorbcpp/swordorb-impl.cpp')
-rw-r--r--bindings/corba/omniorbcpp/swordorb-impl.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/bindings/corba/omniorbcpp/swordorb-impl.cpp b/bindings/corba/omniorbcpp/swordorb-impl.cpp
index e33d879..d36c6a8 100644
--- a/bindings/corba/omniorbcpp/swordorb-impl.cpp
+++ b/bindings/corba/omniorbcpp/swordorb-impl.cpp
@@ -191,13 +191,21 @@ swordorb::StringList* swordorb_SWModule_i::parseKeyList(const char* keyText){
void swordorb_SWModule_i::setKeyText(const char* keyText) {
sword::SWKey *key = delegate->getKey();
sword::VerseKey *vkey = SWDYNAMIC_CAST(VerseKey, key);
- if (vkey && (*keyText=='+' ||*keyText=='-')) {
- if (!stricmp(keyText+1, "book")) {
- vkey->setBook(vkey->getBook() + ((*keyText=='+')?1:-1));
- return;
+ if (vkey) {
+ if ((*keyText=='+' || *keyText=='-')) {
+ if (!stricmp(keyText+1, "book")) {
+ vkey->setBook(vkey->getBook() + ((*keyText=='+')?1:-1));
+ return;
+ }
+ else if (!stricmp(keyText+1, "chapter")) {
+ vkey->setChapter(vkey->getChapter() + ((*keyText=='+')?1:-1));
+ return;
+ }
}
- else if (!stricmp(keyText+1, "chapter")) {
- vkey->setChapter(vkey->getChapter() + ((*keyText=='+')?1:-1));
+ else if (*keyText=='=') {
+ vkey->Headings(true);
+ vkey->AutoNormalize(false);
+ vkey->setText(keyText+1);
return;
}
}