Hello,

In  src/uipp/dxuilib/EditorWindow.C  line 4367:

   int xmin=1e6,xmax=0,ymin=1e6,ymax=0;

something is obviously wrong here. Either  int -> float, or  1e6 -> 1000000
I can't see which of the two changes is best. I suppose an expert out there
will know :).

Similar problems in same file:

(line 4361)  int begx, begy;
             int endx, endy;

(line 4421)  begx = (x_pagesize * border_percent) * 72;
             begy = (y_pagesize * border_percent) * 72;
             endx = (x_pagesize * 72) - begx;
             endy = (y_pagesize * 72) - begy;

because x/y_pagesize and border_percent are floats.
Probably the assignments should become

             begx = int(x_pagesize * border_percent) * 72;
             etc.
         or
             begx = int(x_pagesize * border_percent * 72);
             etc.
     and/or
             use int(ceil( )) instead of simply int(). 

     ( the latter needs also  #include <math.h> )



In src/uipp/dxuilib/DXApplication.C  lines 165 to 169 assigns the NULL
pointer, which seems to be confusing for my compiler (is a cast necessary 
here?):

DXApplication.C:165: warning: initialization to `Symbol' from `{unknown type} *'
lacks a cast
DXApplication.C:166: warning: initialization to `Symbol' from `{unknown type} *'
lacks a cast
DXApplication.C:167: warning: initialization to `Symbol' from `{unknown type} *'
lacks a cast
DXApplication.C:168: warning: initialization to `Symbol' from `{unknown type} *'
lacks a cast
DXApplication.C:169: warning: initialization to `Symbol' from `{unknown type} *'
lacks a cast


Regards,

Rob.

Reply via email to