|
@@ -1286,9 +1286,9 @@ class LineTable:
|
|
set_y.add(y0)
|
|
set_y.add(y0)
|
|
set_y.add(y1)
|
|
set_y.add(y1)
|
|
if len(set_x)==0 or len(set_y)==0:
|
|
if len(set_x)==0 or len(set_y)==0:
|
|
- return
|
|
|
|
|
|
+ return None,[],[]
|
|
if len(list_rect)<=1:
|
|
if len(list_rect)<=1:
|
|
- return
|
|
|
|
|
|
+ return None,[],[]
|
|
list_x = list(set_x)
|
|
list_x = list(set_x)
|
|
list_y = list(set_y)
|
|
list_y = list(set_y)
|
|
|
|
|
|
@@ -1356,6 +1356,9 @@ class LineTable:
|
|
|
|
|
|
_table,list_x,list_y = self.makeTableByRect(list_rect,margin,sourceP_LB)
|
|
_table,list_x,list_y = self.makeTableByRect(list_rect,margin,sourceP_LB)
|
|
|
|
|
|
|
|
+ if _table is None:
|
|
|
|
+ return
|
|
|
|
+
|
|
|
|
|
|
self.feedText2table(_table,list_textbox,in_objs,sourceP_LB)
|
|
self.feedText2table(_table,list_textbox,in_objs,sourceP_LB)
|
|
self.fixRect(_table,list_x,list_y,sourceP_LB,margin)
|
|
self.fixRect(_table,list_x,list_y,sourceP_LB,margin)
|