[sword-cvs] sword/apps/windoze/CBuilder5/BibleCS paraldisp.cpp,1.3,1.4
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 19 Jun 2003 14:00:33 -0700
- Previous message: [sword-cvs] sword/locales.d ro.conf,1.2,1.3 pl.conf,1.3,1.4 id.conf,1.6,1.7 et_abbr.conf,1.2,1.3 et.conf,1.3,1.4 en_GB.conf,1.1,1.2 abbr.conf,1.4,1.5
- Next message: [sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/sword/apps/windoze/CBuilder5/BibleCS
In directory www:/tmp/cvs-serv27266
Modified Files:
paraldisp.cpp
Log Message:
Fixed bug where selecting no Bibles in Parralell, after selecting one or more, caused the last displayed bible to remain, instead it now fills it with a single char to remove all old text and clears the display.
Index: paraldisp.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/apps/windoze/CBuilder5/BibleCS/paraldisp.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** paraldisp.cpp 19 Jun 2003 16:58:30 -0000 1.3
--- paraldisp.cpp 19 Jun 2003 21:00:31 -0000 1.4
***************
*** 61,75 ****
char ParallelDisp::Display() {
SWModule **mods = getModules();
int realModCount;
for (realModCount = 0; mods[realModCount]; realModCount++);
!
! // assert we have at least one module to display
! if (!realModCount)
! return 0; // not an error, just nothing to display
! int testmt, book, chap, verse, versepos;
! char buf[254];
! System::AnsiString newtext, tmptext, tmptext2;
VerseKey *key = (VerseKey *)(SWKey *)(*mods[0]);
--- 61,83 ----
char ParallelDisp::Display() {
+ int testmt, book, chap, verse, versepos;
+ char buf[254];
+ System::AnsiString newtext, tmptext, tmptext2;
+
SWModule **mods = getModules();
int realModCount;
for (realModCount = 0; mods[realModCount]; realModCount++);
!
! // assert we have at least one module to display otherwise clear the display
! if (!realModCount){
! newtext = " "; // This is a single space because if it is completly empty then the pop-up menu items copy, search etc. crash.
! RTFStream->Clear();
! RTFStream->WriteBuffer(newtext.c_str(), newtext.Length());
! RTFStream->Position = 0;
! Lines->LoadFromStream(RTFStream);
! return 0;
! }
!
VerseKey *key = (VerseKey *)(SWKey *)(*mods[0]);
- Previous message: [sword-cvs] sword/locales.d ro.conf,1.2,1.3 pl.conf,1.3,1.4 id.conf,1.6,1.7 et_abbr.conf,1.2,1.3 et.conf,1.3,1.4 en_GB.conf,1.1,1.2 abbr.conf,1.4,1.5
- Next message: [sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]