Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/image/qxpmhandler.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    767767    XPMRGBData x;
    768768    x.name = name_no_space;
    769     // Funtion bsearch() is supposed to be
     769    // Funtion bsearch() is supposed to be
    770770    // void *bsearch(const void *key, const void *base, ...
    771771    // So why (char*)? Are there broken bsearch() declarations out there?
     
    12261226bool QXpmHandler::canRead() const
    12271227{
    1228     if (state == Ready && canRead(device())) {
     1228    if (state == Ready && !canRead(device()))
     1229        return false;
     1230
     1231    if (state != Error) {
    12291232        setFormat("xpm");
    12301233        return true;
    12311234    }
    1232     return state != Error;
     1235
     1236    return false;
    12331237}
    12341238
Note: See TracChangeset for help on using the changeset viewer.