From 1ac41882d3ac4b7dc380095af09b7db84f98205a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 27 Dec 2011 18:33:59 +0000 Subject: [PATCH] Improve debug slightly and fix raise/lower. git-svn-id: svn://localhost/ardour2/branches/3.0@11094 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/playlist.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 4d7e63599f..624ad44510 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -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, double temporary_layer) void Playlist::raise_region (boost::shared_ptr region) { - relayer (region, region->layer() + 0.5); + relayer (region, region->layer() + 1.5); } void Playlist::lower_region (boost::shared_ptr region) { - relayer (region, region->layer() - 0.5); + relayer (region, region->layer() - 1.5); } void