mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:40:05 +00:00 
			
		
		
		
	Do not display an elevation number when there is non
This commit is contained in:
		
							parent
							
								
									484c08c455
								
							
						
					
					
						commit
						24f5f0a3e3
					
				
					 12 changed files with 166 additions and 145 deletions
				
			
		|  | @ -724,7 +724,7 @@ units::angle::degrees<double> ProductDescriptionBlock::elevation() const | |||
| { | ||||
|    double elevation = 0.0; | ||||
| 
 | ||||
|    if (p->elevationNumber_ > 0) | ||||
|    if (has_elevation()) | ||||
|    { | ||||
|       // Elevation is given in tenths of a degree
 | ||||
|       // NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers)
 | ||||
|  | @ -734,6 +734,11 @@ units::angle::degrees<double> ProductDescriptionBlock::elevation() const | |||
|    return units::angle::degrees<double> {elevation}; | ||||
| } | ||||
| 
 | ||||
| bool ProductDescriptionBlock::has_elevation() const | ||||
| { | ||||
|    return p->elevationNumber_ > 0; | ||||
| } | ||||
| 
 | ||||
| bool ProductDescriptionBlock::IsCompressionEnabled() const | ||||
| { | ||||
|    bool isCompressed = false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak