1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 02:39:23 +02:00

fixed floating point series index

This commit is contained in:
Nikolay Pultsin 2011-03-20 04:31:14 +00:00
parent fd46365466
commit 05020b0ca3
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
* A support for SlovoEd dictionaries has been fixed * A support for SlovoEd dictionaries has been fixed
* Czech translation has been updated (by Marek Pavelka) * Czech translation has been updated (by Marek Pavelka)
* No OutOfMemoryErrors in image loading * No OutOfMemoryErrors in image loading
* Float series index parsing has been fixed
===== 0.99.18 (Mar 15, 2011) ===== ===== 0.99.18 (Mar 15, 2011) =====
* Web-free icon * Web-free icon

View file

@ -472,7 +472,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
final Cursor cursor = myDatabase.rawQuery("SELECT Series.name,BookSeries.book_index FROM BookSeries INNER JOIN Series ON Series.series_id = BookSeries.series_id WHERE BookSeries.book_id = ?", new String[] { "" + bookId }); final Cursor cursor = myDatabase.rawQuery("SELECT Series.name,BookSeries.book_index FROM BookSeries INNER JOIN Series ON Series.series_id = BookSeries.series_id WHERE BookSeries.book_id = ?", new String[] { "" + bookId });
SeriesInfo info = null; SeriesInfo info = null;
if (cursor.moveToNext()) { if (cursor.moveToNext()) {
info = new SeriesInfo(cursor.getString(0), cursor.getLong(1)); info = new SeriesInfo(cursor.getString(0), cursor.getFloat(1));
} }
cursor.close(); cursor.close();
return info; return info;