summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-05-31 14:30:02 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-05-31 14:58:05 +0100
commit4139e6a208ea5040b169e9775828a5513c4f4ea9 (patch)
treed7642f0228609014dd61b9459e8d8d00ab61096d /sdext/source/pdfimport
parenta49cd8632ea7e0fdfc3fbb2729ec4d15fbf25a18 (diff)
target cppcheck index incrementing revert
Change-Id: I890dfe9fbd7b5a850daaa0d2b4d5040a5ddbefd7
Diffstat (limited to 'sdext/source/pdfimport')
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index 12d2ab49fd19..9d066b942808 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
@@ -219,7 +219,7 @@ sal_Int32 PDFIProcessor::getFontId( const FontAttributes& rAttr ) const
// line diagnose block - start
void PDFIProcessor::processGlyphLine()
{
- if( m_GlyphsList.empty() )
+ if( m_GlyphsList.size()<1 )
return;
double fPreAvarageSpaceValue= 0.0;
@@ -315,21 +315,17 @@ void PDFIProcessor::processGlyphLine()
ParagraphElement* pPara= NULL ;
FrameElement* pFrame= NULL ;
- if(!m_GlyphsList.empty())
+ if(m_GlyphsList.size()>0)
{
pFrame = m_pElFactory->createFrameElement( m_GlyphsList[0].getCurElement(), getGCId( getTransformGlyphContext( m_GlyphsList[0])) );
pFrame->ZOrder = m_nNextZOrder++;
pPara = m_pElFactory->createParagraphElement( pFrame );
-
-
processGlyph( 0,
m_GlyphsList[0],
pPara,
pFrame,
m_bIsWhiteSpaceInLine );
-
-
}