[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kmplot/kmplot
From:       Fredrik Edemar <f_edemar () linux ! se>
Date:       2006-11-10 23:35:29
Message-ID: 1163201729.068510.3319.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 603966 by fedemar:

first item in the function and constant list is only a description


 M  +6 -0      equationedit.cpp  


--- trunk/KDE/kdeedu/kmplot/kmplot/equationedit.cpp #603965:603966
@@ -599,6 +599,9 @@
 
 void EquationEditor::insertFunction( const QString & function )
 {
+	if ( m_widget->functionList->currentIndex() == 0 )
+		return;
+
 	m_widget->functionList->setCurrentIndex( 0 );
 	m_widget->edit->wrapSelected( function + '(', ")" );
 	m_widget->edit->setFocus();
@@ -607,6 +610,9 @@
 
 void EquationEditor::insertConstant( int index )
 {
+	if ( index == 0 )
+		return;
+
 	ConstantList constants = XParser::self()->constants()->list( Constant::All );
 	
 	if ( constants.size() < index )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic