Changeset 3303 in Sophya


Ignore:
Timestamp:
Aug 21, 2007, 11:31:36 AM (18 years ago)
Author:
ansari
Message:

Correction bug plantage ds PIImage/P2DArrayAdapter lors du resize du widget - corrige ds piimage.cc , offy remplacant offx, Reza 21/08/2007

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piimage.cc

    r3295 r3303  
    15551555
    15561556if (img) {   
     1557// --- cmv+rz 21/08/2007 : Correction plantage lors agrandissement fenetre ,
     1558  if (xwsz >= img->XSize()) offx = 0;
     1559  if (ywsz >= img->YSize()) offy = 0;
     1560// Fin correction cmv+rz 21/08/2007 -----
    15571561  if (xwsz > (img->XSize()-offx)) xwsz = (img->XSize()-offx);
    15581562  if (ywsz > (img->YSize()-offy)) ywsz = (img->YSize()-offy);
    15591563  }
    15601564xpav = offx+xwsz/2;
    1561 ypav = offx+ywsz/2;
     1565ypav = offy+ywsz/2; // --- cmv+rz 21/08/2007 : c'etait offx au lieu de offy
    15621566xszpav = ((xwsz+ywsz)/15) ;
    15631567if (xszpav < 1) xszpav = 1;
  • trunk/SophyaPI/PI/piversion.h

    r3292 r3303  
    22#define PIVERSION_H_SEEN
    33
    4 #define PI_VERSIONNUMBER  4.05
     4#define PI_VERSIONNUMBER  4.06
    55
    66#endif
Note: See TracChangeset for help on using the changeset viewer.