Changeset 2801 in Sophya for trunk/SophyaPI/ProgPI
- Timestamp:
- Jun 8, 2005, 5:45:04 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/ProgPI/w2ps.cc
r2615 r2801 125 125 return(0); 126 126 } 127 sapp->CkEvt_LockMutex(); 127 128 if (sapp->CurrentWindow() == NULL) { 129 sapp->UnlockMutex(); 128 130 cout << " W2PSModuleExecutor::Execute() No current window !" << endl; 129 131 return(0); … … 137 139 else if (kw == "w2eps") { 138 140 if (tokens.size() < 1) { 141 sapp->UnlockMutex(); 139 142 cout << "Usage: w2eps EPSFileName" << endl; 140 143 return(0); … … 144 147 cout << " w2eps: Current window to EPS file " << tokens[0] << endl; 145 148 } 149 sapp->UnlockMutex(); 146 150 } 147 151 else if ( (kw == "imagcmap2ps") || (kw == "imagcmap2eps") ) { … … 152 156 } 153 157 PIImage* curpimg = NULL; 158 sapp->CkEvt_LockMutex(); 154 159 if (sapp->CurrentBaseWdg()) 155 160 curpimg = dynamic_cast<PIImage *>(sapp->CurrentBaseWdg()); 156 161 if (curpimg == NULL) { 162 sapp->UnlockMutex(); 157 163 cout << " W2PSModuleExecutor::Execute() No current PIImage !" << endl; 158 164 return(0); … … 168 174 else if (kw == "imagcmap2eps") { 169 175 if (tokens.size() < 1) { 176 sapp->UnlockMutex(); 170 177 cout << "Usage: imagcmap2eps EPSFileName" << endl; 171 178 return(0); … … 184 191 sx/(double)sapp->CMapVW()->XSize(), 1.); 185 192 193 sapp->UnlockMutex(); 186 194 if (cepsf) delete cepsf; 187 195 }
Note:
See TracChangeset
for help on using the changeset viewer.