mirror of
				https://github.com/python-LimeReport/LimeReport.git
				synced 2025-11-04 07:31:23 +03:00 
			
		
		
		
	Merge pull request #66 from asmaloney/fix-returning-deleted-data
Ensure we aren't returning data that has been deleted …
This commit is contained in:
		@@ -442,6 +442,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
 | 
				
			|||||||
                            BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
 | 
					                            BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
 | 
				
			||||||
                            registerBand(upperPart);
 | 
					                            registerBand(upperPart);
 | 
				
			||||||
                            delete bandClone;
 | 
					                            delete bandClone;
 | 
				
			||||||
 | 
					                            bandClone = NULL;
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    } else {
 | 
					                    } else {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -459,6 +460,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
 | 
				
			|||||||
                                BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
 | 
					                                BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
 | 
				
			||||||
                                registerBand(upperPart);
 | 
					                                registerBand(upperPart);
 | 
				
			||||||
                                delete bandClone;
 | 
					                                delete bandClone;
 | 
				
			||||||
 | 
					                                bandClone = NULL;
 | 
				
			||||||
                            };
 | 
					                            };
 | 
				
			||||||
                        } else {
 | 
					                        } else {
 | 
				
			||||||
                            bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
 | 
					                            bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user