Mercurial > hg > svgui
diff layer/ImageLayer.cpp @ 1533:37df1530519d
Fix failure to apply new frame when pasting events
author | Chris Cannam |
---|---|
date | Wed, 09 Oct 2019 11:51:19 +0100 |
parents | e540aa5d89cd |
children | e6362cf5ff1d |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Wed Oct 09 11:33:33 2019 +0100 +++ b/layer/ImageLayer.cpp Wed Oct 09 11:51:19 2019 +0100 @@ -795,7 +795,8 @@ } bool -ImageLayer::paste(LayerGeometryProvider *v, const Clipboard &from, sv_frame_t /* frameOffset */, bool /* interactive */) +ImageLayer::paste(LayerGeometryProvider *v, const Clipboard &from, + sv_frame_t /* frameOffset */, bool /* interactive */) { auto model = ModelById::getAs<ImageModel>(m_model); if (!model) return false; @@ -842,7 +843,8 @@ } } - Event p = *i; + Event p = i->withFrame(frame); + Event newPoint = p; //!!! inadequate