Commit 15cf0894 authored by ElenaSubbotina's avatar ElenaSubbotina Committed by Alexander Trofimov

MetaFileConvert - при конвертации графики svm из PROPOSAL PEMBUATAN WEBSITE...

MetaFileConvert - при конвертации графики svm из PROPOSAL PEMBUATAN WEBSITE USAHA v1.0.odt падало при отрисовке текста
parent 75ea59bb
......@@ -2018,7 +2018,9 @@ namespace agg
{
if (c.a)
{
value_type* p = (value_type*)m_rbuf->row_ptr(x, y, len) + (x << 2);
value_type* p = (value_type*)m_rbuf->row_ptr(x, y, len);
if (p == NULL) return;
p += (x << 2);
do
{
calc_type alpha = (calc_type(c.a) * (calc_type(*covers) + 1)) >> 8;
......
......@@ -78,9 +78,11 @@ namespace agg
}
//--------------------------------------------------------------------
AGG_INLINE T* row_ptr(int, int y, unsigned)
AGG_INLINE T* row_ptr(int x, int y, unsigned len)
{
return m_start + y * m_stride;
if (m_stride < 0 && m_start - m_buf < -y * m_stride)
return NULL;
return m_start + y * m_stride;
}
AGG_INLINE T* row_ptr(int y) { return m_start + y * m_stride; }
AGG_INLINE const T* row_ptr(int y) const { return m_start + y * m_stride; }
......
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