mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
supplement to 5ac8d0085b
Origin commit data
------------------
Commit: 27ddf8935d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-08-20 (Sat, 20 Aug 2016)
This commit is contained in:
@@ -140,14 +140,14 @@ int CLuaInstCCText::CCTextNew(lua_State *L)
|
||||
|
||||
CComponentsForm* pw = (parent && parent->w) ? parent->w->getBodyObject() : NULL;
|
||||
if(pw){
|
||||
if(dx == -1)
|
||||
if(dx < 1)
|
||||
dx = pw->getHeight();
|
||||
if(dy == -1)
|
||||
if(dy < 1)
|
||||
dy = pw->getWidth();
|
||||
}
|
||||
if(dx == -1)
|
||||
if(dx < 1)
|
||||
dx = 100;
|
||||
if(dy == -1)
|
||||
if(dy < 1)
|
||||
dy = 100;
|
||||
|
||||
CLuaCCText **udata = (CLuaCCText **) lua_newuserdata(L, sizeof(CLuaCCText *));
|
||||
|
Reference in New Issue
Block a user