From 88164597aeada9681855a4bcb9902b7d22c562a1 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 25 Jul 2014 11:54:37 +0000
Subject: [PATCH] pp

---
 Fltk/openglWindow.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Fltk/openglWindow.cpp b/Fltk/openglWindow.cpp
index 00de31de12..e834e5220e 100644
--- a/Fltk/openglWindow.cpp
+++ b/Fltk/openglWindow.cpp
@@ -649,12 +649,13 @@ int openglWindow::handle(int event)
         if(me) text += me->getInfoString();
         if(points.size()){
           char tmp[256];
-          sprintf(tmp, "(%g,%g)", points[0].x(), points[0].y());
+          sprintf(tmp, "Point (%.16g, %.16g)", points[0].x(), points[0].y());
           text += tmp;
           if(CTX::instance()->post.graphPointCommand.size()){
-            text += std::string("\nDouble-click to parse `");
-            text += CTX::instance()->post.graphPointCommand;
-            text += std::string("'");
+            text += std::string(" - Double-click to execute\n\n");
+            std::string cmd = CTX::instance()->post.graphPointCommand;
+            std::replace(cmd.begin(), cmd.end(), '\r', ' ');
+            text += cmd;
           }
         }
         if(CTX::instance()->tooltips)
-- 
GitLab