diff options
author | vng <viktor.govako@gmail.com> | 2012-02-09 01:23:06 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:33:53 +0300 |
commit | fc21bc03b5efba5915686d82bf505653cfcfcb10 (patch) | |
tree | 8f861fe185c7a54c635b3b9ccbea7555a49e79ed /indexer/feature_utils.cpp | |
parent | c7913216d250cbf8cb173ca98f97e7592e22283b (diff) |
[search] Fix result viewport for features with no any texts.
Diffstat (limited to 'indexer/feature_utils.cpp')
-rw-r--r-- | indexer/feature_utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature_utils.cpp b/indexer/feature_utils.cpp index 0302354f80..69d28a3394 100644 --- a/indexer/feature_utils.cpp +++ b/indexer/feature_utils.cpp @@ -80,6 +80,10 @@ public: { // get minimal draw text scale for feature type, that not mentioned in GetScaleForType scale = feature::DrawableScaleRangeForText(types).first; + + // if no texts at all - show at maximum zoom + if (scale == -1) + scale = upperScale; } return scales::GetRectForLevel(scale, center, 1.0); |