[Kde-imaging] [Bug 200558] Crash when saving scanned image to .tiff

Michael G. Hansen mhansen at mghansen.de
Thu Jul 23 06:13:27 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=200558





--- Comment #9 from Michael G. Hansen <mhansen mghansen de>  2009-07-23 06:13:24 ---
I'm sorry to say that the patch still does not work for me. I am now also
getting crashes when saving to PNG. I think the problem is that
wImageIface.setImageData is now called with sixteenBit=true for both 8 and 16
bit cases.

Declaration: void setImageData(const QByteArray& data, uint width, uint height,
                      bool sixteenBit, bool hasAlpha,
                      const QByteArray& iccProfile,
                      const KExiv2Iface::KExiv2& metadata)

// relevant code:
if ( (frmt = KSaneIface::KSaneWidget::FormatRGB_16_C) || (frmt =
KSaneIface::KSaneWidget::FormatRGB_8_C) )
     {
        // 8 and 16 bits color depth image.
        wImageIface.setImageData(ksane_data, width, height, true, false, prof,
meta);

-- 
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