diff --git a/src/org/geometerplus/android/fbreader/libraryService/SQLiteBooksDatabase.java b/src/org/geometerplus/android/fbreader/libraryService/SQLiteBooksDatabase.java index 9747bc299..5326e8715 100644 --- a/src/org/geometerplus/android/fbreader/libraryService/SQLiteBooksDatabase.java +++ b/src/org/geometerplus/android/fbreader/libraryService/SQLiteBooksDatabase.java @@ -32,6 +32,7 @@ import org.geometerplus.zlibrary.core.config.ZLConfig; import org.geometerplus.zlibrary.core.filesystem.ZLFile; import org.geometerplus.zlibrary.core.options.ZLStringOption; import org.geometerplus.zlibrary.core.options.ZLIntegerOption; +import org.geometerplus.zlibrary.core.util.RationalNumber; import org.geometerplus.zlibrary.core.util.ZLColor; import org.geometerplus.zlibrary.text.view.ZLTextPosition; import org.geometerplus.zlibrary.text.view.ZLTextFixedPosition; diff --git a/src/org/geometerplus/fbreader/book/BooksDatabase.java b/src/org/geometerplus/fbreader/book/BooksDatabase.java index 3c682cb0c..c706479cd 100644 --- a/src/org/geometerplus/fbreader/book/BooksDatabase.java +++ b/src/org/geometerplus/fbreader/book/BooksDatabase.java @@ -22,6 +22,7 @@ package org.geometerplus.fbreader.book; import java.util.*; import org.geometerplus.zlibrary.core.filesystem.ZLFile; +import org.geometerplus.zlibrary.core.util.RationalNumber; import org.geometerplus.zlibrary.core.util.ZLColor; import org.geometerplus.zlibrary.text.view.ZLTextPosition; diff --git a/src/org/geometerplus/fbreader/book/RationalNumber.java b/src/org/geometerplus/fbreader/book/RationalNumber.java deleted file mode 100644 index 1b8191932..000000000 --- a/src/org/geometerplus/fbreader/book/RationalNumber.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.geometerplus.fbreader.book; - -public class RationalNumber { - public final long Numerator; - public final long Denominator; - - public RationalNumber(long numerator, long denominator) { - Numerator = numerator; - Denominator = denominator; - } -} diff --git a/src/org/geometerplus/zlibrary/core/util/RationalNumber.java b/src/org/geometerplus/zlibrary/core/util/RationalNumber.java new file mode 100644 index 000000000..c60a2b24b --- /dev/null +++ b/src/org/geometerplus/zlibrary/core/util/RationalNumber.java @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2007-2013 Geometer Plus + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + +package org.geometerplus.zlibrary.core.util; + +public class RationalNumber { + public final long Numerator; + public final long Denominator; + + public RationalNumber(long numerator, long denominator) { + Numerator = numerator; + Denominator = denominator; + } +}