Changeset View
Changeset View
Standalone View
Standalone View
src/imageformats/pic.cpp
Context not available. | |||||
255 | } | 255 | } | ||
---|---|---|---|---|---|
256 | 256 | | |||
257 | QImage img(m_header.width, m_header.height, fmt); | 257 | QImage img(m_header.width, m_header.height, fmt); | ||
258 | if (img.isNull()) { | ||||
259 | qDebug() << "Failed to allocate image, invalid dimensions?" << QSize(m_header.width, m_header.height) << fmt; | ||||
260 | return false; | ||||
261 | } | ||||
262 | | ||||
258 | img.fill(qRgb(0,0,0)); | 263 | img.fill(qRgb(0,0,0)); | ||
259 | 264 | | |||
260 | for (int y = 0; y < m_header.height; y++) { | 265 | for (int y = 0; y < m_header.height; y++) { | ||
Context not available. | |||||
364 | m_state = ReadHeader; | 369 | m_state = ReadHeader; | ||
365 | } | 370 | } | ||
366 | } | 371 | } | ||
372 | | ||||
367 | return m_state != Error; | 373 | return m_state != Error; | ||
368 | } | 374 | } | ||
369 | 375 | | |||
Context not available. |