mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed several locales issues on file import/export
This commit is contained in:
		
							parent
							
								
									4a7f078527
								
							
						
					
					
						commit
						c05b8210f2
					
				
					 3 changed files with 11 additions and 1 deletions
				
			
		|  | @ -992,6 +992,9 @@ void GCodeViewer::export_toolpaths_to_obj(const char* filename) const | |||
|     // save materials file
 | ||||
|     boost::filesystem::path mat_filename(filename); | ||||
|     mat_filename.replace_extension("mtl"); | ||||
| 
 | ||||
|     CNumericLocalesSetter locales_setter; | ||||
| 
 | ||||
|     FILE* fp = boost::nowide::fopen(mat_filename.string().c_str(), "w"); | ||||
|     if (fp == nullptr) { | ||||
|         BOOST_LOG_TRIVIAL(error) << "GCodeViewer::export_toolpaths_to_obj: Couldn't open " << mat_filename.string().c_str() << " for writing"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena