diff --git a/map/framework.cpp b/map/framework.cpp index b643cef35d..cbcfa7f0eb 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -3,9 +3,11 @@ #include "drawer_yg.hpp" #include "benchmark_provider.hpp" #include "geourl_process.hpp" -#include "../gui/controller.hpp" + #include "../defines.hpp" +#include "../gui/controller.hpp" + #include "../platform/settings.hpp" #include "../platform/preferred_languages.hpp" #include "../platform/location.hpp" @@ -25,6 +27,7 @@ #include "../std/target_os.hpp" #include "../std/vector.hpp" + void Framework::AddMap(string const & file) { LOG(LDEBUG, ("Loading map:", file)); @@ -886,8 +889,10 @@ void Framework::ShowSearchResult(search::Result const & res) } /// @todo We can't call this fucntion in android because of invalid m_renderPolicy. - //ShowRectFixed(r); - ShowRect(r); + if (m_renderPolicy) + ShowRectFixed(r); + else + ShowRect(r); DrawPlacemark(res.GetFeatureCenter()); }