Bug 306105 - .ps files don't show when inverting colors.
Summary: .ps files don't show when inverting colors.
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: 0.14.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-31 18:52 UTC by Miguel Raggi
Modified: 2012-09-08 22:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Raggi 2012-08-31 18:52:34 UTC
When the accessibility option "Change Colors: Invert colors", .ps files just show up as a black screen. It flashes the correct content and then dissapears. The interesting part is that the "preview" (in the navigation panel) shows up correctly.

This happens to all the .ps files I have tried, in multiple versions of okular and multiple computers.

Reproducible: Always

Steps to Reproduce:
1. Go to Settings->Configure Okular->Accessibility and check Change Colors->Invert Colors
2. Open a .ps file
Actual Results:  
A flicker of the correct inverted content, then blackness...

Expected Results:  
The correct content (inverted)
Comment 1 Albert Astals Cid 2012-09-03 21:17:15 UTC
Seems QPainter doesn't know how to paint in an Format_ARGB32_Premultiplied QImage when the pixmap we are painting is RGB32. I need to investigate a bit more
Comment 2 Albert Astals Cid 2012-09-08 22:18:51 UTC
Git commit 8b438bf933ee9b6663f5a6e14698dad3f69d9c13 by Albert Astals Cid.
Committed on 09/09/2012 at 00:18.
Pushed by aacid into branch 'KDE/4.9'.

Qt needs the missing alpha of QImage::Format_RGB32 to be 0xff
FIXED-IN: 4.9.2

M  +7    -0    generators/spectre/rendererthread.cpp

http://commits.kde.org/okular/8b438bf933ee9b6663f5a6e14698dad3f69d9c13