Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 23074 → Rev 23075

/trunk/Scribus/scribus/text/textshaper.cpp
31,6 → 31,7
m_firstChar(firstChar),
m_singlePar(false)
{
m_text.reserve(m_story.length() - m_firstChar + 1);
for (int i = m_firstChar; i < m_story.length(); ++i)
{
QChar ch = m_story.text(i);
169,7 → 170,7
 
void TextShaper::buildText(int fromPos, int toPos, QVector<int>& smallCaps)
{
m_text = "";
m_text.clear();
if (toPos > m_story.length() || toPos < 0)
toPos = m_story.length();
421,7 → 422,7
const CharStyle& charStyle(m_story.charStyle(firstChar));
const StyleFlag& effects = charStyle.effects();
 
QString str = m_text.mid(firstChar, lastChar-firstChar+1);
QString str = m_text.mid(firstChar - fromPos, lastChar-firstChar+1);
GlyphCluster run(&charStyle, flags, firstChar, lastChar, m_story.object(firstChar), result.glyphs().length(), str);
 
run.clearFlag(ScLayout_HyphenationPossible);