Changeset 846 for trunk/src/gui/image/qbmphandler.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/image/qbmphandler.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 247 247 if (depth != 32) { 248 248 ncols = bi.biClrUsed ? bi.biClrUsed : 1 << nbits; 249 if (ncols > 256) // sanity check - don't run out of mem if color table is broken 250 return false; 249 251 image.setColorCount(ncols); 250 252 } … … 675 677 bool QBmpHandler::canRead() const 676 678 { 677 if (state == Ready) { 678 if (!canRead(device())) 679 return false; 679 if (state == Ready && !canRead(device())) 680 return false; 681 682 if (state != Error) { 680 683 setFormat("bmp"); 681 684 return true; 682 685 } 683 return state != Error; 686 687 return false; 684 688 } 685 689
Note:
See TracChangeset
for help on using the changeset viewer.