From 02e66fd034ecde7c75e995b18f8cb6e89bb513af Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Fri, 26 Jul 2013 23:42:31 +0200 Subject: [PATCH] Canvas GUI: fix updating canvas on window with decoration. --- src/Canvas/window.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Canvas/window.cxx b/src/Canvas/window.cxx index b3cae2c1d..653427272 100644 --- a/src/Canvas/window.cxx +++ b/src/Canvas/window.cxx @@ -122,7 +122,12 @@ namespace canvas void Window::setCanvasContent(sc::CanvasPtr canvas) { _canvas_content = canvas; - setSrcCanvas(canvas); + + if( _image_content ) + // Placement within decoration canvas + _image_content->setSrcCanvas(canvas); + else + setSrcCanvas(canvas); } //----------------------------------------------------------------------------