summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 772df9530ce5..e47900441476 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -143,7 +143,9 @@ void StyleLBoxString::Paint(
{
if (pStylePreviewRenderer->recalculate())
{
- mpViewData->maSize = pStylePreviewRenderer->getRenderSize();
+ Size aSize(pStylePreviewRenderer->getRenderSize());
+ mpViewData->mnWidth = aSize.Width();
+ mpViewData->mnHeight = aSize.Height();
}
else
{