#531 !d.unit not updated to reflect lun of the ps file

closed-fixed
nobody
None
5
2013-04-29
2013-04-26
sachahony
No

I use (fstat(!d.unit)).name to determine the filename of the current postscript file in some of my routines. In IDL the !d.unit reflects the actual unit but in GDL the unit remains 0

simple example:
set_plot,'ps'
device,filename='test.ps'
print,!d.unit

Discussion

  • Alain C.
    Alain C.
    2013-04-29

    • status: open --> closed-fixed
     
  • Alain C.
    Alain C.
    2013-04-29

    I made changes in the CVS (deviceps.hpp). I suspect it is not the most elegant way, advices welcome !!

    Please create a new entry with code sample if problem.

    Alain