[Digikam-devel] [Bug 278320] Crash with "-graphicssystem raster"
Marcel Wiesweg
marcel.wiesweg at gmx.de
Sat Aug 6 16:23:11 BST 2011
https://bugs.kde.org/show_bug.cgi?id=278320
Marcel Wiesweg <marcel.wiesweg at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Marcel Wiesweg <marcel wiesweg gmx de> 2011-08-06 15:23:11 ---
Git commit 2b739c70f008ac2538eb635b7334104167ad0a50 by Marcel Wiesweg.
Committed on 06/08/2011 at 16:51.
Pushed by mwiesweg into branch 'master'.
Pass a persistent QImage to QPixmap::fromImage when paint engine is raster.
For native engines, a temporary QImage can be provided, but raster will just
take
and store the QImage, so a memcpy is needed.
The paint engine relevant for pixmaps can be detected by opening a painter on a
1x1 pixmap and querying the QPaintEngine. For optimization, this is done only
once
per application lifetime because DImg::convertToPixmap is very time critical.
BUG: 278320
M +2 -1 NEWS
M +38 -4 libs/dimg/dimg.cpp
http://commits.kde.org/digikam/2b739c70f008ac2538eb635b7334104167ad0a50
--
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 Digikam-devel
mailing list