mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	Fix the displayed tone-range markers on transition from WSPR to JT65.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5515 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									753c52165e
								
							
						
					
					
						commit
						c9f2efa667
					
				@ -3031,8 +3031,9 @@ void MainWindow::on_actionJT9W_1_triggered()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void MainWindow::on_actionJT65_triggered()
 | 
					void MainWindow::on_actionJT65_triggered()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  if(m_mode=="JT4") {
 | 
					  if(m_mode=="JT4" or m_mode.mid(0,4)=="WSPR") {
 | 
				
			||||||
// If coming from JT4 mode, pretend we're coming from JT9 and click the pbTxMode button
 | 
					// If coming from JT4 or WSPR mode, pretend temporarily that we're coming
 | 
				
			||||||
 | 
					// from JT9 and click the pbTxMode button
 | 
				
			||||||
    m_modeTx="JT9";
 | 
					    m_modeTx="JT9";
 | 
				
			||||||
    on_pbTxMode_clicked();
 | 
					    on_pbTxMode_clicked();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
@ -94,7 +94,6 @@ void CPlotter::draw(float swide[], bool bScroll)                            //dr
 | 
				
			|||||||
  double fac = sqrt(m_binsPerPixel*m_waterfallAvg/15.0);
 | 
					  double fac = sqrt(m_binsPerPixel*m_waterfallAvg/15.0);
 | 
				
			||||||
  double gain = fac*pow(10.0,0.02*m_plotGain);
 | 
					  double gain = fac*pow(10.0,0.02*m_plotGain);
 | 
				
			||||||
  double gain2d = pow(10.0,0.02*(m_plot2dGain));
 | 
					  double gain2d = pow(10.0,0.02*(m_plot2dGain));
 | 
				
			||||||
//  qDebug() << m_binsPerPixel << m_waterfallAvg << m_plotGain << gain;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
//move current data down one line (must do this before attaching a QPainter object)
 | 
					//move current data down one line (must do this before attaching a QPainter object)
 | 
				
			||||||
  if(bScroll) m_WaterfallPixmap.scroll(0,1,0,0,m_w,m_h1);
 | 
					  if(bScroll) m_WaterfallPixmap.scroll(0,1,0,0,m_w,m_h1);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user