Changeset 5304 for nanovis/branches/1.2
- Timestamp:
- Apr 24, 2015 4:34:34 PM (6 years ago)
- Location:
- nanovis/branches/1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.2
- Property svn:mergeinfo changed
/nanovis/trunk merged: 5302-5303
- Property svn:mergeinfo changed
-
nanovis/branches/1.2/Command.cpp
r4937 r5304 1298 1298 const char *tag = Tcl_GetString(objv[4]); 1299 1299 1300 if (nbytes <= 0) { 1301 Tcl_AppendResult(interp, "bad # bytes request \"", 1302 Tcl_GetString(objv[3]), "\" for \"data follows\"", (char *)NULL); 1303 ERROR("Bad nbytes %d", nbytes); 1304 return TCL_ERROR; 1305 } 1306 1300 1307 Rappture::Buffer buf(nbytes); 1301 1308 if (GetDataStream(interp, buf, nbytes) != TCL_OK) { … … 1333 1340 } else if ((nBytes > 14) && (strncmp(bytes, "# vtk DataFile", 14) == 0)) { 1334 1341 TRACE("VTK loading..."); 1335 if (nBytes <= 0) {1336 ERROR("data buffer is empty");1337 abort();1338 }1339 1342 std::stringstream fdata; 1340 1343 fdata.write(bytes, nBytes); … … 1354 1357 } 1355 1358 TRACE("DX loading..."); 1356 if (nBytes <= 0) {1357 ERROR("data buffer is empty");1358 abort();1359 }1360 1359 std::stringstream fdata; 1361 1360 fdata.write(bytes, nBytes);
Note: See TracChangeset
for help on using the changeset viewer.