summaryrefslogtreecommitdiff
path: root/filter/source/graphicfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-21 09:45:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-21 12:48:59 +0000
commita52f5254c703ec0618611b8abf5deea6bef0dcb4 (patch)
treefc2c7dd438a5d0c340f778f3c25e2521b46d1658 /filter/source/graphicfilter
parentbaebdaa48e88949bf6aa92c478733518bede5c6e (diff)
tga filter broken for quite a while
Diffstat (limited to 'filter/source/graphicfilter')
-rw-r--r--filter/source/graphicfilter/itga/itga.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/filter/source/graphicfilter/itga/itga.cxx b/filter/source/graphicfilter/itga/itga.cxx
index 35d438bef8e1..080b0b98efb5 100644
--- a/filter/source/graphicfilter/itga/itga.cxx
+++ b/filter/source/graphicfilter/itga/itga.cxx
@@ -304,7 +304,6 @@ sal_Bool TGAReader::ImplReadBody()
nYAdd -=2;
}
-// nDepth = mpFileHeader->nPixelDepth - ( mpFileHeader->nImageDescriptor & 0xf );
nDepth = mpFileHeader->nPixelDepth;
if ( mbEncoding )
@@ -339,7 +338,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -364,7 +363,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -394,7 +393,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -417,7 +416,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -453,7 +452,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -473,7 +472,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -502,7 +501,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -522,7 +521,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -553,7 +552,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}
@@ -576,7 +575,7 @@ sal_Bool TGAReader::ImplReadBody()
nYCount++;
if( nYCount >= mpFileHeader->nImageHeight )
- return false; // invalid picture
+ break;
}
}
}