[jsword-svn] r1293 - trunk/jsword/src/main/java/org/crosswire/jsword/book/readings
dmsmith at www.crosswire.org
dmsmith at www.crosswire.org
Sun Apr 22 04:19:22 MST 2007
Author: dmsmith
Date: 2007-04-22 04:19:22 -0700 (Sun, 22 Apr 2007)
New Revision: 1293
Modified:
trunk/jsword/src/main/java/org/crosswire/jsword/book/readings/ReadingsKey.java
Log:
Fixed a bug, recently introduced, in Readings Book.
Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/readings/ReadingsKey.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/readings/ReadingsKey.java 2007-04-21 21:26:10 UTC (rev 1292)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/readings/ReadingsKey.java 2007-04-22 11:19:22 UTC (rev 1293)
@@ -98,7 +98,7 @@
// The real bit ...
ReadingsKey that = (ReadingsKey) obj;
- return date.equals(that.date);
+ return getName().equals(that.getName());
}
/* (non-Javadoc)
@@ -149,6 +149,10 @@
*/
private static final DateFormat NAME_DF = DateFormat.getDateInstance(DateFormat.MEDIUM);
private static final DateFormat OSIS_DF = new SimpleDateFormat("d.MMMM"); //$NON-NLS-1$
+ static
+ {
+ NAME_DF.setLenient(true);
+ }
private static final MessageFormat KEY_FORMAT = new MessageFormat("{0,number,00}.{1,number,00}"); //$NON-NLS-1$
}
More information about the jsword-svn
mailing list