From eefdc205fa65276d0da7e2ed20d812c9e62344c8 Mon Sep 17 00:00:00 2001 From: danglassey Date: Wed, 21 Aug 2002 13:00:48 +0000 Subject: sync with crosswire 20020821-1300 --- src/keys/versekey.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/keys/versekey.cpp b/src/keys/versekey.cpp index 05f1b8b..484e5ce 100644 --- a/src/keys/versekey.cpp +++ b/src/keys/versekey.cpp @@ -169,8 +169,12 @@ void VerseKey::setLocale(const char *name) { localeCache.abbrevsCnt = abbrevsCnt; } stdstr(&(this->locale), localeCache.name); -} + if (lowerBound) + LowerBound().setLocale(name); + if (upperBound) + UpperBound().setLocale(name); +} void VerseKey::setBooks(const char *iBMAX, struct sbook **ibooks) { BMAX = iBMAX; @@ -709,6 +713,7 @@ VerseKey &VerseKey::LowerBound(const char *lb) (*lowerBound) = lb; lowerBound->Normalize(); + lowerBound->setLocale( this->getLocale() ); return (*lowerBound); } @@ -728,6 +733,7 @@ VerseKey &VerseKey::UpperBound(const char *ub) if (*upperBound < *lowerBound) *upperBound = *lowerBound; upperBound->Normalize(); + upperBound->setLocale( this->getLocale() ); // until we have a proper method to resolve max verse/chap use this kludge int len = strlen(ub); -- cgit