mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	fixed for python2
This commit is contained in:
		
							parent
							
								
									386492ff54
								
							
						
					
					
						commit
						c174c90ac1
					
				| 
						 | 
					@ -389,6 +389,12 @@ text_layout_raqm(PyObject* string, FontObject* self, const char* dir, const char
 | 
				
			||||||
            PyErr_SetString(PyExc_ValueError, "raqm_set_text_utf8() failed");
 | 
					            PyErr_SetString(PyExc_ValueError, "raqm_set_text_utf8() failed");
 | 
				
			||||||
            goto failed;
 | 
					            goto failed;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        if (lang) {
 | 
				
			||||||
 | 
					            if (!(*p_raqm.set_language)(rq, lang, start, size)) {
 | 
				
			||||||
 | 
					                PyErr_SetString(PyExc_ValueError, "raqm_set_language() failed");
 | 
				
			||||||
 | 
					                goto failed;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    else {
 | 
					    else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user