diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-23 22:31:25 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-24 10:48:43 +0200 |
commit | 609d16263ff303c1c2dd1691e90b6731ea03e7c4 (patch) | |
tree | 76616b7e013832fa070fd407b852091a9a114a31 | |
parent | 66120256587c88d8746095485ab0d12aea9232a6 (diff) |
GetTexBoundRect does not really return teh bounding rectangle
Change-Id: I66c996dadab51debc39a50c5e93e8c6a76842ceb
-rw-r--r-- | chart2/source/view/main/3DChartObjects.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx index d9c0724809eb..aa777431331b 100644 --- a/chart2/source/view/main/3DChartObjects.cxx +++ b/chart2/source/view/main/3DChartObjects.cxx @@ -80,7 +80,8 @@ Text::Text(OpenGL3DRenderer* pRenderer, const OUString& rStr, sal_uInt32 nId): aDevice.Erase(); aDevice.GetTextBoundRect(aRect, rStr); Size aSize = aRect.GetSize(); - aSize.Height() *= 2; + aSize.Width() += 5; + aSize.Height() *= 1.6; aDevice.SetOutputSizePixel(aSize); aDevice.SetBackground(Wallpaper(COL_TRANSPARENT)); aDevice.DrawText(Point(0,0), rStr); |