one more condition on the name field

This commit is contained in:
wiredfool 2013-10-02 16:34:46 -07:00
parent bded4abc9d
commit 2c46984ed1

View File

@ -536,7 +536,7 @@ cms_profile_getattr_product_name(CmsProfileObject* self, void* closure)
if (!PyString_Size(model) && !PyString_Size(manufacturer)){
return _profile_getattr(self, cmsInfoDescription);
}
if (!PyString_Size(manufacturer)){
if (!PyString_Size(manufacturer) || PyString_Size(model)> 30){
return model;
}
PyString_Concat(&model,