summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a627694)
raw | patch | inline | side by side (parent: a627694)
author | Jon A. Cruz <jon@joncruz.org> | |
Wed, 17 Mar 2010 14:40:30 +0000 (07:40 -0700) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Wed, 17 Mar 2010 14:40:30 +0000 (07:40 -0700) |
src/sp-image.cpp | patch | blob | history |
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 93e7b4d65844370cdb47ddd407eebca0b8542212..bb867e969aa205906e117efb6f09f73d1aee1917 100644 (file)
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -460,18 +460,15 @@ static GdkPixbuf* pixbuf_new_from_file( const char *filename, time_t &modTime, g
youme.offset = 0;
youme.loader = loader;
- bool dropOut = false;
- while ( !feof(fp) && !dropOut )
+ while ( !feof(fp) )
{
if ( youme.readMore() ) {
if ( youme.first ) {
//g_message( "First data chunk" );
youme.first = FALSE;
- if (!readPngAndHeaders(youme, dpiX, dpiY))
+ if (readPngAndHeaders(youme, dpiX, dpiY))
{
- // We failed to read the PNG headers and info.
- // The GDK pixbuf loader may still get something.
- dropOut = true;
+ // TODO set the dpi to be read elsewhere
}
} else if ( !latter ) {
latter = TRUE;