Commit 419ec7ed authored by ElenaSubbotina's avatar ElenaSubbotina

x2t version up

parent 5f7d9eea
......@@ -3836,7 +3836,8 @@ namespace BinDocxRW
bool bWasText = false;
int nRecordType = 0;
std::list<OOX::WritingElement*>::iterator nIndexStart = pRun->m_arrItems.begin();
std::list<OOX::WritingElement*>::iterator nIndexStart = pRun->m_arrItems.begin();
std::list<OOX::WritingElement*>::iterator nIndexEnd = pRun->m_arrItems.end();
if (bMathRun)
nRecordType = c_oSer_OMathContentType::Run;
......@@ -3844,7 +3845,7 @@ namespace BinDocxRW
nRecordType = c_oSerParType::Run;
//Разбиваем массив по знаку et_w_sym
for (std::list<OOX::WritingElement*>::iterator it = pRun->m_arrItems.begin(); it != pRun->m_arrItems.end(); it++)
for (std::list<OOX::WritingElement*>::iterator it = pRun->m_arrItems.begin(); it != nIndexEnd; it++)
{
OOX::WritingElement* item = *it;
......@@ -3866,10 +3867,10 @@ namespace BinDocxRW
else if(OOX::et_w_rPr != item->getType())
bWasText = true;
}
if(nIndexStart != pRun->m_arrItems.end())
if(nIndexStart != nIndexEnd)
{
nCurPos = m_oBcw.WriteItemStart(nRecordType);
WritePreparedRun( pRun, bHyperlink, nIndexStart, pRun->m_arrItems.end());
WritePreparedRun( pRun, bHyperlink, nIndexStart, nIndexEnd);
m_oBcw.WriteItemWithLengthEnd(nCurPos);
}
}
......
......@@ -1155,7 +1155,7 @@ namespace OOX
}
virtual void ClearItems()
{
for ( ElemArray::iterator it = m_arrItems.begin(); it != m_arrItems.end(); it++)
for ( auto it = m_arrItems.begin(); it != m_arrItems.end(); it++)
{
if ( *it ) delete *it;
*it = NULL;
......
......@@ -137,7 +137,7 @@ namespace Spreadsheet
}
virtual void ClearItems()
{
for ( SpreadsheetElemArray::iterator it = m_arrItems.begin(); it != m_arrItems.end(); it++)
for ( auto it = m_arrItems.begin(); it != m_arrItems.end(); it++)
{
if ( *it ) delete *it;
*it = NULL;
......
......@@ -7,7 +7,7 @@
QT -= core
QT -= gui
VERSION = 2.4.492.0
VERSION = 2.4.494.0
DEFINES += INTVER=$$VERSION
TARGET = x2t
......
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