diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx index cb9f46f3dc6b..6f6e6e150c63 100644 --- a/sw/qa/tiledrendering/tiledrendering.cxx +++ b/sw/qa/tiledrendering/tiledrendering.cxx @@ -105,7 +105,7 @@ public: } }; -IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) +IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) { int contextWidth = extractInt(mpContextWidth); int contextHeight = extractInt(mpContextHeight); @@ -133,6 +133,9 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) // copy the aDevice content to mpImage BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel())); mpImage->SetImage(Image(aBitmap)); + + // update the dialog size + setOptimalLayoutSize(); } return 1; diff --git a/sw/qa/tiledrendering/tiledrendering.ui b/sw/qa/tiledrendering/tiledrendering.ui index 59dc1e6fe200..e5e6d8ff420c 100644 --- a/sw/qa/tiledrendering/tiledrendering.ui +++ b/sw/qa/tiledrendering/tiledrendering.ui @@ -15,11 +15,11 @@ False + 12 True False - 12 12