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

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Sat Jun 16 05:07:31 MST 2007


Author: dmsmith
Date: 2007-06-16 05:07:31 -0700 (Sat, 16 Jun 2007)
New Revision: 1411

Modified:
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleViewPane.java
Log:
Finished yesterday's coding by fixing a new display bug.

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleViewPane.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleViewPane.java	2007-06-15 21:59:12 UTC (rev 1410)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/book/BibleViewPane.java	2007-06-16 12:07:31 UTC (rev 1411)
@@ -96,7 +96,7 @@
              */
             public void passageSelected(DisplaySelectEvent ev)
             {
-                setKey(ev.getKey());
+                pnlPassg.setBookData(ev.getBookProvider().getBooks(), ev.getKey());
             }
 
             /* (non-Javadoc)
@@ -291,6 +291,8 @@
      */
     public Key getKey()
     {
+        // Get it from the pnlPassg because the user may be in the middle of an edit
+        // and pnlSelect may be inconsistent.
         return pnlPassg.getKey();
     }
 
@@ -299,7 +301,7 @@
      */
     public final void setKey(Key key)
     {
-        pnlPassg.setBookData(pnlSelect.getBooks(), key);
+        pnlSelect.setKey(key);
     }
 
     /**




More information about the jsword-svn mailing list