[jsword-svn] r2147 - trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book

dmsmith at crosswire.org dmsmith at crosswire.org
Thu Apr 7 13:05:16 MST 2011


Author: dmsmith
Date: 2011-04-07 13:05:16 -0700 (Thu, 07 Apr 2011)
New Revision: 2147

Modified:
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleComboBoxModel.java
Log:
fixed a cast error

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleComboBoxModel.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleComboBoxModel.java	2011-04-07 20:04:54 UTC (rev 2146)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleComboBoxModel.java	2011-04-07 20:05:16 UTC (rev 2147)
@@ -32,7 +32,6 @@
 import org.crosswire.jsword.passage.Verse;
 import org.crosswire.jsword.versification.BibleBook;
 import org.crosswire.jsword.versification.BibleInfo;
-import org.crosswire.jsword.versification.BookName;
 
 /**
  * A ComboBoxModel for selecting book/chapter/verse.
@@ -81,8 +80,7 @@
 
         switch (level) {
         case LEVEL_BOOK:
-            BookName bsel = (BookName) selected;
-            BibleBook book = bsel.getBook();
+            BibleBook book = (BibleBook) selected;
             assert book != null;
             setBook(book);
             break;




More information about the jsword-svn mailing list