diff --git a/map/information_display.cpp b/map/information_display.cpp index 72c830a500..d77520d6d6 100644 --- a/map/information_display.cpp +++ b/map/information_display.cpp @@ -8,6 +8,7 @@ #include "../yg/skin.hpp" #include "../std/fstream.hpp" +#include "../std/iomanip.hpp" #include "../version/version.hpp" #include "../base/string_utils.hpp" @@ -305,7 +306,10 @@ void InformationDisplay::setCenter(m2::PointD const & pt) void InformationDisplay::drawCenter(DrawerYG * drawer) { ostringstream out; - out << "(" << m_centerPt.x << ", " << m_centerPt.y << ")"; + + out << "(" << fixed << setprecision(4) << setw(8) << m_centerPt.x << ", " + << fixed << setprecision(4) << setw(8) << m_centerPt.y << ")"; + m2::RectD const & textRect = drawer->screen()->textRect( out.str().c_str(), 10, diff --git a/std/iomanip.hpp b/std/iomanip.hpp index d8df553cab..93c74e0bb7 100644 --- a/std/iomanip.hpp +++ b/std/iomanip.hpp @@ -9,6 +9,8 @@ using std::setw; using std::setfill; using std::hex; +using std::fixed; +using std::setprecision; #ifdef DEBUG_NEW #define new DEBUG_NEW