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

List:       kde-commits
Subject:    koffice/kspread/dialogs
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2009-02-15 16:57:41
Message-ID: 1234717061.105857.9271.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 926549 by mkruisselbrink:

fix bug in formula dialog where the value of whatever parameter you've edited last is \
replaced by the name of the cell the formula is in


 M  +7 -3      FormulaDialog.cpp  


--- trunk/koffice/kspread/dialogs/FormulaDialog.cpp #926548:926549
@@ -338,6 +338,10 @@
 
 void FormulaDialog::slotOk()
 {
+    // Pretend none of the text edits have focus; otherwise the next line will \
change the +    // value of whatever parameter has focus to the name of the cell \
we're editing +    m_focus = 0;
+
     m_selection->endReferenceSelection();
 
     // Revert the marker to its original position
@@ -350,7 +354,7 @@
         Q_ASSERT( m_editor );
         QString tmp = result->text();
         if( tmp.at(0) != '=')
-	    tmp = '=' + tmp;
+            tmp = '=' + tmp;
         int pos = m_editor->cursorPosition()+ tmp.length();
         m_editor->setText( tmp );
         m_editor->setFocus();
@@ -397,10 +401,10 @@
 {
     // Test the lock
     if( !refresh_result )
-	return;
+        return;
 
     if ( m_focus == 0 )
-	return;
+        return;
 
     QString tmp = m_leftText+m_funcName+'(';
     tmp += createFormula();


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

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