Kaydet (Commit) 1d9ad0d8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

use std::min

Change-Id: I8ffaf5e5ed418901658ca6b7e3d1ad369ee0baba
üst 8b2a48bc
......@@ -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 )
......
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