The following seems to do the trick. At least it haven't crashed yet, and it
does compile.
diff -r1.5 ut_Xpm2Bmp.cpp
124,126c124,125
< UT_sint32 resultHash = hash.addEntry(bufSymbol,0,(void *)(k+1));
< UT_ASSERT(resultHash != -1);
<
---
> hash.insert(bufSymbol, (HashValType)(k+1));
>
164,165c163,164
< UT_HashEntry * pEntry = hash.findEntry(bufPixel);
< *pPixel++ = ((UT_Byte)(pEntry->pData)) - 1;
---
> const HashValType pEntry = hash.pick(bufPixel);
> *pPixel++ = ((UT_Byte)(pEntry)) - 1;
I haven't committed since I'm not 100% sure this is really sane.
/Mike