2:supplement to 5ac8d0085b

Origin commit data
------------------
Commit: c37ef21912
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-08-20 (Sat, 20 Aug 2016)

Origin message was:
------------------
2:supplement to 5ac8d0085b
This commit is contained in:
Jacek Jendrzej
2016-08-20 13:59:15 +02:00
parent 882bdf5b2d
commit f1912db720

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;