CComponents: add log warning if position = 0

Value 0 for embedded items should be unproblematic, buy single items
should have minimum value = 1.


Origin commit data
------------------
Branch: ni/coolstream
Commit: e5b0673259
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-10 (Sun, 10 Nov 2013)



------------------
This commit was generated by Migit
This commit is contained in:
2013-11-10 14:48:19 +01:00
parent d7653c4dbd
commit c654fd1268

View File

@@ -107,8 +107,13 @@ void CComponents::paintFbItems(bool do_save_bg)
for(size_t i=0; i< v_fbdata.size() ;i++){
// Don't paint if dx or dy are 0
if ((v_fbdata[i].dx == 0) || (v_fbdata[i].dy == 0))
if ((v_fbdata[i].dx == 0) || (v_fbdata[i].dy == 0)){
printf(" [CComponents] WARNING:\n [%s - %d], dx = %d\n dy = %d\n", __FUNCTION__, __LINE__, v_fbdata[i].dx, v_fbdata[i].dy);
continue;
}
if ((v_fbdata[i].x == 0) || (v_fbdata[i].y == 0)){
printf(" [CComponents] WARNING:\n [%s - %d], x = %d\n y = %d\n", __FUNCTION__, __LINE__, v_fbdata[i].x, v_fbdata[i].y);
}
int fbtype = v_fbdata[i].fbdata_type;
#ifdef DEBUG_CC