src/reportlab/graphics/renderbase.py
changeset 3233 9408fec15198
parent 3032 22224b1b4d24
child 3326 ce725978d11c
child 3467 4f25b3a34c5f
equal deleted inserted replaced
3232:5284683ed19d 3233:9408fec15198
   243         canvas = getattr(self,'_canvas',None)
   243         canvas = getattr(self,'_canvas',None)
   244         # replace UserNode with its contents
   244         # replace UserNode with its contents
   245 
   245 
   246         try:
   246         try:
   247             node = _expandUserNode(node,canvas)
   247             node = _expandUserNode(node,canvas)
       
   248             if not node: return
   248             if hasattr(node,'_canvas'):
   249             if hasattr(node,'_canvas'):
   249                 ocanvas = 1
   250                 ocanvas = 1
   250             else:
   251             else:
   251                 node._canvas = canvas
   252                 node._canvas = canvas
   252                 ocanvas = None
   253                 ocanvas = None
   288         # just do the contents.  Some renderers might need to override this
   289         # just do the contents.  Some renderers might need to override this
   289         # if they need a flipped transform
   290         # if they need a flipped transform
   290         canvas = getattr(self,'_canvas',None)
   291         canvas = getattr(self,'_canvas',None)
   291         for node in group.getContents():
   292         for node in group.getContents():
   292             node = _expandUserNode(node,canvas)
   293             node = _expandUserNode(node,canvas)
       
   294             if not node: continue
   293 
   295 
   294             #here is where we do derived values - this seems to get everything. Touch wood.            
   296             #here is where we do derived values - this seems to get everything. Touch wood.            
   295             self.fillDerivedValues(node)
   297             self.fillDerivedValues(node)
   296             try:
   298             try:
   297                 if hasattr(node,'_canvas'):
   299                 if hasattr(node,'_canvas'):