[Kde-imaging] [Bug 200558] Crash when saving scanned image to .tiff
Michael G. Hansen
mhansen at mghansen.de
Thu Jul 23 10:21:13 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=200558
--- Comment #19 from Michael G. Hansen <mhansen mghansen de> 2009-07-23 10:21:12 ---
Looking at
http://websvn.kde.org/trunk/extragear/graphics/digikam/libs/dimg/loaders/tiffloader.cpp?revision=997129&view=markup
Isn't the parameter to TIFFSetField here also wrong? "EXTRASAMPLE_ASSOCALPHA"
just happens to be 1, that's why it does not show:
Index: libs/dimg/loaders/tiffloader.cpp
===================================================================
--- libs/dimg/loaders/tiffloader.cpp (revision 1001413)
+++ libs/dimg/loaders/tiffloader.cpp (working copy)
@@ -587,7 +587,7 @@
{
uint16 sampleinfo[1] = { EXTRASAMPLE_UNASSALPHA };
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4);
- TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, EXTRASAMPLE_ASSOCALPHA,
sampleinfo);
+ TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, sampleinfo);
}
else
{
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-imaging
mailing list