MRI: Fix Font.name returning nil
I wish I had tests..
This commit is contained in:
		
							parent
							
								
									5379511d95
								
							
						
					
					
						commit
						8d7166f3d2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -152,7 +152,7 @@ RB_METHOD(FontSetName)
 | 
				
			||||||
	Font *f = getPrivateData<Font>(self);
 | 
						Font *f = getPrivateData<Font>(self);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	char result[256];
 | 
						char result[256];
 | 
				
			||||||
	fontSetNameHelper(self, argc, argv, "default_name",
 | 
						fontSetNameHelper(self, argc, argv, "name",
 | 
				
			||||||
	                  result, sizeof(result));
 | 
						                  result, sizeof(result));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	f->setName(result);
 | 
						f->setName(result);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue