[editor] Initialize Invalidate function in the framework.

This commit is contained in:
Alex Zolotarev 2015-12-09 19:27:51 +03:00 committed by Sergey Yershov
parent 319434c134
commit 2eb1db0912

View file

@ -32,6 +32,7 @@
#include "indexer/drawing_rules.hpp"
#include "indexer/feature.hpp"
#include "indexer/map_style_reader.hpp"
#include "indexer/osm_editor.hpp"
#include "indexer/scales.hpp"
/// @todo Probably it's better to join this functionality.
@ -320,6 +321,8 @@ Framework::Framework()
LOG(LDEBUG, ("Routing engine initialized"));
LOG(LINFO, ("System languages:", languages::GetPreferred()));
osm::Editor::Instance().SetInvalidateFn([this](){ InvalidateRect(GetCurrentViewport()); });
}
Framework::~Framework()