aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp b/apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp
index 7e8e39b..0247936 100644
--- a/apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/vrslstfrm.cpp
@@ -39,7 +39,10 @@ void __fastcall TVerseListForm::ListBox1Click(TObject *Sender) {
target = Form1->mainmgr->Modules.find(Form1->TextPageControl->ActivePage->Caption.c_str());
if (target != Form1->mainmgr->Modules.end()) {
ListKey key;
- key << ListBox1->Items->Strings[ListBox1->ItemIndex].c_str();
+ SWKey *tkey = target->second->CreateKey();
+ *tkey = ListBox1->Items->Strings[ListBox1->ItemIndex].c_str();
+ key << *tkey;
+ delete tkey;
pvrtf->fillWithVerses(target->second, &key, true, false);
}
}