diff options
Diffstat (limited to 'karbon/render/vkopainter.cc')
-rw-r--r-- | karbon/render/vkopainter.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/karbon/render/vkopainter.cc b/karbon/render/vkopainter.cc index 98ae826e..0ac9fd0c 100644 --- a/karbon/render/vkopainter.cc +++ b/karbon/render/vkopainter.cc @@ -293,25 +293,25 @@ VKoPainter::fillPath() if( m_index == 0 ) return; // find begin of last subpath - int tqfind = -1; + int find = -1; for( int i = m_index - 1; i >= 0; i-- ) { if( m_path[i].code == ART_MOVETO_OPEN || m_path[i].code == ART_MOVETO ) { - tqfind = i; + find = i; break; } } // for now, always close - if( tqfind != -1 && ( m_path[ tqfind ].x3 != m_path[ m_index - 1 ].x3 || - m_path[ tqfind ].y3 != m_path[ m_index - 1 ].y3 ) ) + if( find != -1 && ( m_path[ find ].x3 != m_path[ m_index - 1 ].x3 || + m_path[ find ].y3 != m_path[ m_index - 1 ].y3 ) ) { ensureSpace( m_index + 1 ); m_path[ m_index ].code = ART_LINETO; - m_path[ m_index ].x3 = m_path[ tqfind ].x3; - m_path[ m_index ].y3 = m_path[ tqfind ].y3; + m_path[ m_index ].x3 = m_path[ find ].x3; + m_path[ m_index ].y3 = m_path[ find ].y3; m_index++; m_path[ m_index ].code = ART_END; |