mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 04:50:29 -04:00 
			
		
		
		
	Merge pull request #601 from Vort/atv_mod_crash_fix
ATV Modulator: fix crash when m_pointsPerHBar = 0
This commit is contained in:
		
						commit
						afd76e274e
					
				| @ -611,7 +611,7 @@ void ATVModSource::applyStandard(const ATVModSettings& settings) | |||||||
|     m_pointsPerImgLine = m_pointsPerLine - m_pointsPerSync - m_pointsPerBP - m_pointsPerFP; |     m_pointsPerImgLine = m_pointsPerLine - m_pointsPerSync - m_pointsPerBP - m_pointsPerFP; | ||||||
|     m_nbHorizPoints    = m_pointsPerLine; |     m_nbHorizPoints    = m_pointsPerLine; | ||||||
| 
 | 
 | ||||||
|     m_pointsPerHBar    = m_pointsPerImgLine / m_nbBars; |     m_pointsPerHBar    = std::max(1, m_pointsPerImgLine / m_nbBars); | ||||||
|     m_hBarIncrement    = m_spanLevel / (float) (m_nbBars - 1); |     m_hBarIncrement    = m_spanLevel / (float) (m_nbBars - 1); | ||||||
|     m_vBarIncrement    = m_spanLevel / (float) (m_nbBars - 1); |     m_vBarIncrement    = m_spanLevel / (float) (m_nbBars - 1); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user