X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fimage.cc;h=32e453dc30e70b3a19bd271dece3ff2e9d8e28b2;hb=0ce393f05144762a20d72975d0254ebca0789973;hp=4a9bcdf8f1b80abd77e953433c4d94ae8b21b810;hpb=11becd4a6b3ac337221fa35ed922d50a4ff00dd5;p=ardour.git diff --git a/libs/canvas/image.cc b/libs/canvas/image.cc index 4a9bcdf8f1..32e453dc30 100644 --- a/libs/canvas/image.cc +++ b/libs/canvas/image.cc @@ -48,7 +48,7 @@ Image::render (Rect const& area, Cairo::RefPtr context) const boost::optional draw = self.intersection (area); if (_surface && draw) { - context->set_source (_surface, 0, 0); + context->set_source (_surface, self.x0, self.y0); context->rectangle (draw->x0, draw->y0, draw->width(), draw->height()); context->fill (); }