[Libufo-commits] ufo-0.5/src/text utextlayout.cpp,1.3,1.4
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2005-10-29 15:22:06
|
Update of /cvsroot/libufo/ufo-0.5/src/text In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4907/src/text Modified Files: utextlayout.cpp Log Message: Added check for zero-length texts. Index: utextlayout.cpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/src/text/utextlayout.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** utextlayout.cpp 30 Sep 2005 12:37:20 -0000 1.3 --- utextlayout.cpp 29 Oct 2005 15:21:55 -0000 1.4 *************** *** 310,314 **** index++; } ! if (lineStart < m_length || m_text[m_length - 1] == '\n') { UTextLine line(lineStart, m_length - lineStart, lineHeight, pos); m_lines.push_back(line); --- 310,314 ---- index++; } ! if (lineStart < m_length || (m_length && m_text[m_length - 1] == '\n')) { UTextLine line(lineStart, m_length - lineStart, lineHeight, pos); m_lines.push_back(line); |