Changeset 1451 in Sophya


Ignore:
Timestamp:
Apr 7, 2001, 1:17:19 PM (24 years ago)
Author:
cmv
Message:

gestions argument de newwin cmv 4/4/01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r1276 r1451  
    6464  } 
    6565else if (kw == "newwin") {
    66   if (tokens.size() < 2) { cout << "Usage: newwin nx ny" << endl;  return(0); }
    67   int nx, ny;
    68   nx = ny = 1;
    69   nx = atoi(tokens[0].c_str());    ny = atoi(tokens[1].c_str());
     66  int nx=1, ny=1;
     67  //if(tokens.size() < 2) { cout << "Usage: newwin nx ny" << endl;  return(0); }
     68  if(tokens.size() > 0) nx = atoi(tokens[0].c_str());
     69  if(tokens.size() > 1) ny = atoi(tokens[1].c_str());
    7070  mObjMgr->SetGraphicWinZone(nx, ny, true);
    7171  } 
Note: See TracChangeset for help on using the changeset viewer.