Summary: | KGhostView: Graphics very dark and tables invisible | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Dominique Michel <dominique.michel> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | aacid, adrian |
Priority: | NOR | ||
Version First Reported In: | 0.15.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Dominique Michel
2005-09-13 22:56:30 UTC
It was the same problem with the graphics in this file with xpdf but the tables was OK. I send a bug rapport, and a few hours later, i get this mail in return: That was a bug in handling sampled functions with 32-bit samples. I'm attaching a patch file. Index: Function.cc =================================================================== RCS file: /home/derekn/src/cvs/xpdf/Function.cc,v retrieving revision 1.24 retrieving revision 1.25 diff -c -r1.24 -r1.25 *** Function.cc 14 Feb 2005 04:27:46 -0000 1.24 --- Function.cc 13 Sep 2005 23:25:33 -0000 1.25 *************** *** 190,196 **** Object obj1, obj2; Guint buf, bitMask; int bits; ! int s; int i; samples = NULL; --- 190,196 ---- Object obj1, obj2; Guint buf, bitMask; int bits; ! Guint s; int i; samples = NULL; *************** *** 239,245 **** goto err2; } sampleBits = obj1.getInt(); ! sampleMul = 1.0 / (double)((1 << sampleBits) - 1); obj1.free(); //----- Encode --- 239,245 ---- goto err2; } sampleBits = obj1.getInt(); ! sampleMul = 1.0 / (pow(2, sampleBits) - 1); obj1.free(); //----- Encode ################################################## I have not try this patch, i am too busy. The linked document is not available anymore. Could you please confirm whether or not this works as expected with Okular? No answer for years. |