[Kalzium] [Bug 134086] Spectrum should reset to full width when selecting another element

cniehaus at gmx.de cniehaus at gmx.de
Sun Sep 24 19:53:57 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134086         
cniehaus gmx de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From cniehaus gmx de  2006-09-24 19:53 -------
SVN commit 588032 by cniehaus:

Fix the spectrum-bug in trunk... Now I need somebody who has KDE 3.5 and backports. I have 45mb left on my harddisc so there is no way I can install kde3-developent-stuff...

BUGS:134086


 M  +13 -9     detailinfodlg.cpp  


--- trunk/KDE/kdeedu/kalzium/src/detailinfodlg.cpp #588031:588032
 @ -523,15 +523,19  @
 
 	// updating spectrum widget
 	if ( m_element->spectrum() )
-	{
-		m_spectrumview->setSpectrum( m_element->spectrum() );
-		m_spectrumStack->setCurrentWidget( m_spectrumview );
-	}
-	else
-	{
-		m_spectrumLabel->setText( i18n( "No spectrum of %1 found.", element_name ) );
-		m_spectrumStack->setCurrentWidget( m_spectrumLabel );
-	}
+  {
+      delete m_spectrumview;
+      
+      m_spectrumview = new SpectrumViewImpl( m_spectrumStack );
+      m_spectrumview->setSpectrum( m_element->spectrum() );
+	m_spectrumStack->addWidget( m_spectrumview );
+      m_spectrumStack->setCurrentWidget( m_spectrumview );
+  }
+  else
+  {
+      m_spectrumLabel->setText( i18n( "No spectrum of %1 found.", element_name ) );
+      m_spectrumStack->setCurrentWidget( m_spectrumLabel );
+  }
 }
 
 void DetailedInfoDlg::slotHelp()


More information about the Kalzium mailing list