summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-01-13 22:49:54 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:53 +0100
commit55add3e2aba31cb26f647b11724f90220453d1a0 (patch)
treeefa0e9d1e87cef761d08e2ce881021d33b3eb4b8 /chart2
parentf04ad9460d5aee148371e1290df39d911812351c (diff)
let us be a bit more conservative and deal with floating point correctly
Change-Id: I22e21c1550982458f1a2c464a8b82e1d71e0525d
Diffstat (limited to 'chart2')
-rwxr-xr-xchart2/source/view/main/OpenGLRender.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index 0fef5c5909a1..8d713c6c047b 100755
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -1521,7 +1521,7 @@ int OpenGLRender::CreateTextTexture(::rtl::OUString textValue, sal_uInt32 color,
m_TextInfo.vertex[7] = (float)(aSize.Height / 2) / OPENGL_SCALE_VALUE;
//if has ratotion, we must re caculate the central pos
- if (rotation)
+ if (!rtl::math::approxEqual(0, rotation))
{
//use left top
double r = sqrt((double)(aSize.Width * aSize.Width + aSize.Height * aSize.Height)) / 2;