Improve debug slightly and fix raise/lower.
authorCarl Hetherington <carl@carlh.net>
Tue, 27 Dec 2011 18:33:59 +0000 (18:33 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 27 Dec 2011 18:33:59 +0000 (18:33 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11094 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/playlist.cc

index 4d7e63599ff32001d4e91746e2361a91f171bdf2..624ad445101d13028bd364afda129ed227352bab 100644 (file)
@@ -2519,7 +2519,7 @@ Playlist::commit_temporary_layers (TemporaryLayers const & temporary_layers)
                        (*i)->set_layer (0);
                }
                
-               DEBUG_TRACE (DEBUG::Layering, string_compose ("\t%1 %2\n", (*i)->name(), (*i)->layer()));
+               DEBUG_TRACE (DEBUG::Layering, string_compose ("\t%1 temporary %2 committed %3\n", (*i)->name(), temporary_layers.get (*i), (*i)->layer()));
        }
 
        notify_layering_changed ();
@@ -2579,13 +2579,13 @@ Playlist::relayer (boost::shared_ptr<Region> region, double temporary_layer)
 void
 Playlist::raise_region (boost::shared_ptr<Region> region)
 {
-       relayer (region, region->layer() + 0.5);
+       relayer (region, region->layer() + 1.5);
 }
 
 void
 Playlist::lower_region (boost::shared_ptr<Region> region)
 {
-       relayer (region, region->layer() - 0.5);
+       relayer (region, region->layer() - 1.5);
 }
 
 void