ShowSearchResult, analize m_renderPolicy and call appropriate function.

This commit is contained in:
vng 2012-06-18 17:58:39 -07:00 committed by Alex Zolotarev
parent 126ab6021e
commit bd3dea56eb

View file

@ -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());
}