Changeset 139 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Aug 24, 1998, 11:22:10 AM (27 years ago)
Author:
ercodmgr
Message:

Correction PIZoneWindow et protection PIGraphUC Depuis PC-Linux Reza 24/08/98

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

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

    r113 r139  
    8080
    8181  xScale = xWd/(xMax-xMin);
     82  if (xScale < 1.e-19)  xScale = 1.e-19;  // Protection
    8283  if (aXdir)  {
    8384    xScale = -xScale;
     
    8889
    8990  yScale = yWd/(yMax-yMin);
     91  if (yScale < 1.e-19)  yScale = 1.e-19;  // Protection
    9092  if (!aYdir) {
    9193    yScale = -yScale;
  • trunk/SophyaPI/PI/pistzwin.cc

    r138 r139  
    147147child->SetBinding(PIBK_elastic,PIBK_elastic,PIBK_elastic, PIBK_elastic);
    148148//  Il faut faire le delete a cet endroit, sinon probleme avec widget motif XmForm  Reza 18/08/98
    149 if (mZWdg[mZc])  delete mZWdg[mZc];
     149if (mZWdg[mZc])  {
     150  if (mACSup) delete mZWdg[mZc];
     151  else mZWdg[mZc]->UnManage();
     152  }
    150153mZWdg[mZc] = child;
    151154mZc = (mZc+1)%(mZx*mZy);
     
    170173
    171174/* --Methode-- */
    172 void PIZoneWindow::NextChildPosSize(int& px, int& py, int& sx, int& sy)
     175PIWdg* PIZoneWindow::NextChildPosSize(int& px, int& py, int& sx, int& sy)
    173176{
    174177sx = XSize()/mZx;
     
    177180int ny = mZc/mZx;
    178181px = nx*sx;  py = ny*sy;
     182return ((PIWdg*)mZWdg[mZc]);
    179183}
  • trunk/SophyaPI/PI/pistzwin.h

    r134 r139  
    4848  virtual void  SetZone(int nzx, int nzy);
    4949  virtual void  NbZone(int& nzx, int& nzy);
    50   virtual void  NextChildPosSize(int& px, int& py, int& sx, int& sy);
     50  virtual PIWdg*  NextChildPosSize(int& px, int& py, int& sx, int& sy);
    5151
    5252protected:
Note: See TracChangeset for help on using the changeset viewer.