summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/tiledrendering/tiledrendering.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx
index 148a720850c1..cb9f46f3dc6b 100644
--- a/sw/qa/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/tiledrendering/tiledrendering.cxx
@@ -129,7 +129,10 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight));
pViewShell->PaintTile(&aDevice, Rectangle(tilePosX, tilePosY, tileWidth, tileHeight));
- //TODO now get it to the 'context'
+
+ // copy the aDevice content to mpImage
+ BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel()));
+ mpImage->SetImage(Image(aBitmap));
}
return 1;