mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: remove check for empty diveplan
This was introduced in commit fc13361079 ("Don't crash if we try to save
a empty plan") - but it doesn't seem to make any sense. It is perfectly
reasonable for the diveplan to have no datapoints at this spot - we are
just about to call createTemporaryPlan() which will fill those datapoints
from the mode.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									65f3135a92
								
							
						
					
					
						commit
						a0136a3b8c
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -876,9 +876,6 @@ void DivePlannerPointsModel::createPlan()
 | 
			
		|||
	char *cache = NULL;
 | 
			
		||||
	tempDive = NULL;
 | 
			
		||||
 | 
			
		||||
	if (!diveplan.dp)
 | 
			
		||||
		return cancelPlan();
 | 
			
		||||
 | 
			
		||||
	bool oldRecalc = plannerModel->setRecalc(false);
 | 
			
		||||
	removeDeco();
 | 
			
		||||
	createTemporaryPlan();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue