Kaydet (Commit) 30329249 authored tarafından Eike Rathke [er]'s avatar Eike Rathke [er] Kaydeden (comit) Michael Stahl

QuattroPro warnings

üst 55d72ab8
......@@ -64,10 +64,16 @@ FltError ScQProReader::readSheet( SCTAB nTab, ScDocument* pDoc, ScQProStyle *pSt
case 0x000f:{ // Label cell
String aLabel;
*mpStream >> nCol >> nDummy >> nRow >> nStyle >> nDummy;
readString( aLabel, getLength() - 7 );
nStyle = nStyle >> 3;
pStyle->SetFormat( pDoc, nCol, nRow, nTab, nStyle );
pDoc->PutCell( nCol, nRow, nTab, ScBaseCell::CreateTextCell( aLabel, pDoc ), true );
sal_uInt16 nLen = getLength();
if (nLen >= 7)
{
readString( aLabel, nLen - 7 );
nStyle = nStyle >> 3;
pStyle->SetFormat( pDoc, nCol, nRow, nTab, nStyle );
pDoc->PutCell( nCol, nRow, nTab, ScBaseCell::CreateTextCell( aLabel, pDoc ), true );
}
else
eRet = eERR_FORMAT;
}
break;
......@@ -195,7 +201,11 @@ FltError ScQProReader::import( ScDocument *pDoc )
String aLabel;
*mpStream >> nPtSize >> nFontAttr;
pStyleElement->setFontRecord( j, nFontAttr, nPtSize );
readString( aLabel, getLength() - 4 );
sal_uInt16 nLen = getLength();
if (nLen >= 4)
readString( aLabel, nLen - 4 );
else
eRet = eERR_FORMAT;
pStyleElement->setFontType( j, aLabel );
j++;
}
......
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