Kaydet (Commit) 55add3e2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

let us be a bit more conservative and deal with floating point correctly

Change-Id: I22e21c1550982458f1a2c464a8b82e1d71e0525d
üst f04ad946
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment