Re: tb_hyperlink_xpm causes an assert

From: Jordi Mas (jmas@softcatala.org)
Date: Sun Sep 22 2002 - 14:50:24 EDT

  • Next message: Mark Gilbert: "AbiWord 1.0.3 "Désir Satisfait" Unleashed!"

    En/na Dom Lachowicz ha escrit:
    > On Sunday, September 22, 2002, at 11:30 AM, Jordi Mas wrote:
    >
    >> UT_ASSERT((nrColors > 0) && (nrColors < 256));
    >>
    >> At this point, nrColors is equal 295.
    >
    >
    >> The graphic is shown in the toolbar and the conversion is done. Should
    >> we decrease the number of colours of the XMP, we get rid of the
    >> assert, ideas????
    >
    >
    > I think that it would be safe to remove the assert. I don't see any code
    > in that function that would require the XPM to have fewer than 256 colors.

    OK, I have dome this for win32, most likely Hub will have to do the same for Mac.

    Checking in ut_Xpm2Bmp.cpp;
    /cvsroot/abi/src/af/util/win/ut_Xpm2Bmp.cpp,v <-- ut_Xpm2Bmp.cpp
    new revision: 1.10; previous revision: 1.9
    done

    Thanks Dom,

    -- 
    

    Jordi Mas http://www.softcatala.org



    This archive was generated by hypermail 2.1.4 : Sun Sep 22 2002 - 15:08:27 EDT