Fix possible crash when removing ports with jack1
[ardour.git] / libs / canvas / colors.cc
index dd928ae1a2125f1f90bb355b23448ae19f2f169d..0bd3f8b04961875622ffb3c847697c7188e43fe6 100644 (file)
@@ -36,7 +36,7 @@ using std::max;
 using std::min;
 
 ArdourCanvas::Color
-change_alpha (Color c, double a)
+ArdourCanvas::change_alpha (Color c, double a)
 {
        return ((c & ~0xff) | (lrintf (a*255.0) & 0xff));
 }
@@ -259,6 +259,7 @@ HSV::HSV (const std::string& str)
 string
 HSV::to_string () const
 {
+       PBD::LocaleGuard lg;
        stringstream ss;
        ss << h << ' ';
        ss << s << ' ';