Changeset 1133 for trunk/source/visualization
- Timestamp:
- Oct 15, 2009, 5:33:42 PM (15 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/History
r1132 r1133 1 $Id: History,v 1.15 3 2009/10/14 15:04:09lgarnier Exp $1 $Id: History,v 1.154 2009/10/15 15:33:30 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 15 October 2009 Laurent Garnier 20 - G4OpenGLViewer.cc : Fix a problem with printing. On mac OSX version 21 > 10.5.7? or Ubuntu > 9.04? AND with user account configure in french 22 (or canadian I believe), the decimal point character was defined by 23 "," (see LC_NUMERIC). This cause a problem on reading eps files. 24 Changed "," to "." 25 19 26 13 October 2009 Laurent Garnier 20 27 - G4OpenGLImmediateQtViewer/StoredQtViewer : some cleaning -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r1125 r1133 25 25 // 26 26 // 27 // $Id: G4OpenGLViewer.cc,v 1.5 7 2009/08/19 13:28:10 lgarnier Exp $27 // $Id: G4OpenGLViewer.cc,v 1.58 2009/10/15 15:33:30 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 496 496 printf("G4OpenGLViewer::printEPS file:%s Vec:%d Name:%s\n",getRealPrintFilename().c_str(),fVectoredPs,GetName().c_str()); 497 497 #endif 498 499 // Change the LC_NUMERIC value in order to have "." separtor and not "," 500 // This case is only useful for French, Canadien... 501 char *oldLocale = strdup(setlocale(LC_NUMERIC,NULL)); 502 setlocale(LC_NUMERIC,"C"); 503 498 504 if (fVectoredPs) { 499 505 res = printVectoredEPS(); … … 501 507 res = printNonVectoredEPS(); 502 508 } 509 510 // restore the local 511 if (oldLocale) { 512 setlocale(LC_NUMERIC,oldLocale); 513 free(oldLocale); 514 } 515 503 516 if (res == false) { 504 517 G4cerr << "Error while saving file... "<<getRealPrintFilename().c_str()<< G4endl;
Note: See TracChangeset
for help on using the changeset viewer.