2:supplement to a648daba75

This commit is contained in:
Jacek Jendrzej
2016-08-20 13:59:15 +02:00
parent 27ddf8935d
commit c37ef21912

View File

@@ -140,10 +140,10 @@ int CLuaInstCCText::CCTextNew(lua_State *L)
CComponentsForm* pw = (parent && parent->w) ? parent->w->getBodyObject() : NULL;
if(pw){
if(dx < 1)
dx = pw->getHeight();
if(dy < 1)
dy = pw->getWidth();
dy = pw->getHeight();
if(dx < 1)
dx = pw->getWidth();
}
if(dx < 1)
dx = 100;