bugGNU Octave - Bugs: bug #52460, graphics_toolkit fltk fails...

 
 

bug #52460: graphics_toolkit fltk fails printing uint8 and uint16 color images, and patch to fix

Submitted by:  None
Submitted on:  Mon 20 Nov 2017 12:04:36 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: R.S.CarmenesOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 20 Nov 2017 12:45:32 AM UTC, comment #2:

I grafted the change from default to stable:

http://hg.savannah.gnu.org/hgweb/octave/rev/1ad2297f8ece

Closing report.

John W. Eaton <jwe>
Project Administrator
Mon 20 Nov 2017 12:39:20 AM UTC, comment #1:

This change was already made on the default branch here:

http://hg.savannah.gnu.org/hgweb/octave/rev/7a1097510439

I don't see why it shouldn't also go on stable before the 4.2.2 release.

John W. Eaton <jwe>
Project Administrator
Mon 20 Nov 2017 12:04:36 AM UTC, original submission:

Hello,

When using graphics_toolkit fltk, color images in uint8 or uint16 format are correctly shown on the screen but not printed (we get a black rectangle instead). However, color images in double and gray images in any format are correctly printed.

This happens with the current octave (at lease 4.2.1 and the current dev version) compiled in 32bit linux (but it is likely to affect other machines and versions too). gl2ps and fltk libraries are also current.

The following code reproduces the problem:

After investigating, I found this is due to an wrong type being used in gl2ps-print.cc.

The following patch solves the problem:

I hope the fix will be soon incorporated into the source tree.

Ricardo.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Nov 2017 12:45:32 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Releasedev=>4.2.1

    Back to the top


    Powered by Savane 3.1-cleanup1