From 666095fe7a4b0635d5b9f90cec038ebdcb39b1fb Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 27 Apr 2012 00:18:37 +0200 Subject: [PATCH] Fix SQLite source --- OsmAnd/src/net/osmand/plus/SQLiteTileSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java index fb4e92d6b5..0fde4499df 100644 --- a/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java +++ b/OsmAnd/src/net/osmand/plus/SQLiteTileSource.java @@ -138,10 +138,10 @@ public class SQLiteTileSource implements ITileSource { try { long z; z = db.compileStatement("SELECT minzoom FROM info").simpleQueryForLong(); //$NON-NLS-1$ - if (z < 17 && z >= 0) + if (z < 17) maxZoom = 17 - (int)z; z = db.compileStatement("SELECT maxzoom FROM info").simpleQueryForLong(); //$NON-NLS-1$ - if (z < 17 && z >= 0) + if (z < 17) minZoom = 17 - (int)z; } catch (RuntimeException e) { }