diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-01-12 16:02:17 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:45 +0100 |
commit | 1d9ad0d8afc6e61023407a1e1ed990bab0f8a54d (patch) | |
tree | d2947d3a59b860ba2e3583f59b9716f7c5e8df87 /chart2 | |
parent | 8b2a48bceccd6c3a12cf93620c56ebd6da8a1062 (diff) |
use std::min
Change-Id: I8ffaf5e5ed418901658ca6b7e3d1ad369ee0baba
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index 99cb4503dfc3..66118fbbe286 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -967,8 +967,7 @@ void OpenGLRender::SetLine2DColor(sal_uInt8 r, sal_uInt8 g, sal_uInt8 b) void OpenGLRender::SetLine2DWidth(int width) { - m_fLineWidth = (float)width / 10.0f; - m_fLineWidth = (m_fLineWidth < 0.001) ? 0.001 : m_fLineWidth; + m_fLineWidth = std::max((float)width / 10.0f, 0.001f); } #if defined( _WIN32 ) |