1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +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

@ -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 });
SeriesInfo info = null;
if (cursor.moveToNext()) {
info = new SeriesInfo(cursor.getString(0), cursor.getLong(1));
info = new SeriesInfo(cursor.getString(0), cursor.getFloat(1));
}
cursor.close();
return info;