Reduced min pen pixel width to 1.0

This commit is contained in:
Alex Zolotarev 2011-12-10 16:33:27 +03:00 committed by Alex Zolotarev
parent f2dfb497bc
commit a015c2965a

View file

@ -14,8 +14,8 @@ namespace yg
PenInfo::PenInfo(Color const & color, double w, double const * pattern, size_t patternSize, double offset)
: m_color(color), m_w(w), m_offset(offset), m_isSolid(false)
{
if (m_w < 1.25)
m_w = 1.25;
if (m_w < 1.0)
m_w = 1.0;
/// if pattern is solid
if ((pattern == 0 ) || (patternSize == 0))