Changeset 141 in Sophya for trunk/SophyaPI/PI/pigraphx.cc


Ignore:
Timestamp:
Sep 2, 1998, 6:38:21 PM (27 years ago)
Author:
ercodmgr
Message:

Dashed-line et petite corrrection ds ApplX Reza 02/09/98

File:
1 edited

Legend:

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

    r140 r141  
    395395void PIGraphicX::SelLine(PILineAtt att)
    396396{
    397 unsigned int lt;
     397unsigned int lt=0;
     398int lstyle=LineSolid;
    398399
    399400if (att == mLAtt)  return;
     
    403404  case PI_NormalLine :
    404405    lt = 2;
     406    lstyle = LineSolid;
    405407    break;
    406408  case PI_ThickLine :
    407409    lt = 4;
     410    lstyle = LineSolid;
    408411    break;
    409412  case  PI_ThinLine :
    410413    lt = 0;
    411     break;
     414    lstyle = LineSolid;
     415    break;
     416  case PI_DashedLine :
     417    lt = 2;
     418    lstyle = LineOnOffDash;
     419    break;
     420  case PI_ThickDashedLine :
     421    lt = 4;
     422    lstyle = LineOnOffDash;
     423    break;
     424  case  PI_ThinDashedLine :
     425    lt = 0;
     426    lstyle = LineOnOffDash;
     427    break;
     428
    412429  default:
    413430    lt = 0;
     431    lstyle=LineSolid;
    414432    break;
    415433  }
    416434   
    417 XSetLineAttributes(XtDisplay(MyWdg()), DefGC(), lt, LineSolid, CapButt, JoinMiter);
     435XSetLineAttributes(XtDisplay(MyWdg()), DefGC(), lt, lstyle, CapButt, JoinMiter);
    418436mLAtt = att;
    419437return;
Note: See TracChangeset for help on using the changeset viewer.