Small cleanup.
[ardour.git] / gtk2_ardour / audio_region_editor.cc
index 2fb5ac5697e136ff28886bb0c2f9b200e00e2900..e47f145c7e2e4caabbdde6f03e962e0c89f077c4 100644 (file)
@@ -17,8 +17,6 @@
 
 */
 
-#include <boost/lexical_cast.hpp>
-
 #include "pbd/memento_command.h"
 #include "pbd/stateful_diff_command.h"
 #include "pbd/pthread_utils.h"
@@ -139,6 +137,10 @@ AudioRegionEditor::peak_amplitude_thread ()
 void
 AudioRegionEditor::peak_amplitude_found (double p)
 {
-       _peak_amplitude.set_text (boost::lexical_cast<string> (p));
+       stringstream s;
+       s.precision (2);
+       s.setf (ios::fixed, ios::floatfield);
+       s << p;
+       _peak_amplitude.set_text (s.str ());
 }