Changeset 2180 for trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
- Timestamp:
- 06/16/03 15:13:21 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2178 r2180 675 675 676 676 // layout and map new tab 677 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00)677 //#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00) 678 678 MapSubwindows(); 679 679 Layout(); 680 #else681 Layout();682 MapSubwindows();683 #endif680 //#else 681 // Layout(); 682 // MapSubwindows(); 683 //#endif 684 684 685 685 // display new tab in the main frame … … 1435 1435 const TString newstr("%%DocumentPaperSizes: a4\n%%Orientation: Landscape"); 1436 1436 1437 // gcc 3.2: 1438 /* 1439 fstream f(name, ios::in|ios::out|ios::nocreate); 1437 /* FIXME: Does gcc 2.95 need this flag, too? |ios::nocreate */ 1438 fstream f(name, ios::in|ios::out); 1440 1439 1441 1440 TString str; 1442 1441 f >> str; 1443 1442 1444 streampos p = f.tellg()+1;1443 const streampos p = f.tellg(); 1445 1444 1446 1445 char *c1 = new char[newstr.Length()]; … … 1450 1449 1451 1450 f.seekp(p); 1451 f.seekp(1, ios::cur); 1452 1452 1453 1453 f << newstr; … … 1455 1455 while (1) 1456 1456 { 1457 streampos p1 = f.tellg();1457 const streampos p1 = f.tellg(); 1458 1458 f.read(c2, newstr.Length()); 1459 streampos p2 = f.tellg();1459 const streampos p2 = f.tellg(); 1460 1460 f.seekp(p1); 1461 1461 if (f) … … 1474 1474 delete c2; 1475 1475 delete c1; 1476 */1477 1476 } 1478 1477
Note:
See TracChangeset
for help on using the changeset viewer.