Changeset View
Changeset View
Standalone View
Standalone View
generators/kimgio/generator_kimgio.cpp
Context not available. | |||||
68 | 68 | | |||
---|---|---|---|---|---|
69 | QImageReader reader( &buffer, QImageReader::imageFormat( &buffer ) ); | 69 | QImageReader reader( &buffer, QImageReader::imageFormat( &buffer ) ); | ||
70 | reader.setAutoDetectImageFormat( true ); | 70 | reader.setAutoDetectImageFormat( true ); | ||
71 | if ( !reader.read( &m_img ) ) { | 71 | bool ok = reader.read( &m_img ); | ||
72 | if ( !ok && m_img.isNull() ) { | ||||
72 | emit error( i18n( "Unable to load document: %1", reader.errorString() ), -1 ); | 73 | emit error( i18n( "Unable to load document: %1", reader.errorString() ), -1 ); | ||
73 | return false; | 74 | return false; | ||
74 | } | 75 | } | ||
Context not available. |