chart2/source/view/main/DummyXShape.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
New commits: commit d55dfdb9b48196b9907a7023cb338a62bac99127 Author: Markus Mohrhard <[email protected]> Date: Sun Dec 29 05:41:29 2013 +0100 that code looked strange and might explain some artifacts Change-Id: I069728620b741cc62218eff8ca10c0950166d6db diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 08d18c7..305fd53 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -944,16 +944,12 @@ void DummyChart::setSize( const awt::Size& aSize ) // DummyXShape::setSize(aSize); // mpWindow->SetSizePixel(Size(aSize.Width, aSize.Height)); // pWindow->SetSizePixel(Size(aSize.Width, aSize.Height)); - int width = aSize.Width / 10; - int height = aSize.Height / 10; - width = (width + 3) & ~3; - height = (height + 3) & ~3; - mpWindow->SetSizePixel(Size(width, height)); - pWindow->SetSizePixel(Size(width, height)); + mpWindow->SetSizePixel(Size(0,0)); + pWindow->SetSizePixel(Size(0,0)); DummyXShape::setSize(awt::Size(0,0)); - m_GLRender.SetWidth(width); - m_GLRender.SetHeight(height); - SAL_WARN("chart2.opengl", "DummyChart::GLRender.Width = " << width << ", GLRender.Height = " << height); + m_GLRender.SetWidth(aSize.Width); + m_GLRender.SetHeight(aSize.Height); + SAL_WARN("chart2.opengl", "DummyChart::GLRender.Width = " << aSize.Width << ", GLRender.Height = " << aSize.Height); #endif //[mod] by gaowei end _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
