Fix incorrect double-snap when moving audio-locked tempi
[ardour.git] / libs / ardour / io.cc
index 2dcc9d53a7f71c9510fb7de98d6f99eeaa8cd5b3..46c5d7b8c5f434a56a32603525ac56b59be78403 100644 (file)
@@ -31,6 +31,7 @@
 #include "pbd/replace_all.h"
 #include "pbd/unknown_type.h"
 #include "pbd/enumwriter.h"
+#include "pbd/locale_guard.h"
 #include "pbd/types_convert.h"
 
 #include "ardour/audioengine.h"
@@ -553,7 +554,6 @@ IO::state (bool /*full_state*/)
 {
        XMLNode* node = new XMLNode (state_node_name);
        int n;
-       LocaleGuard lg;
        Glib::Threads::Mutex::Lock lm (io_lock);
 
        node->set_property ("name", name());
@@ -616,9 +616,6 @@ IO::set_state (const XMLNode& node, int version)
         */
        assert (version >= 3000);
 
-       XMLNodeConstIterator iter;
-       LocaleGuard lg;
-
        /* force use of non-localized representation of decimal point,
           since we use it a lot in XML files and so forth.
        */