[Kst] [Bug 115988] "INDEX" overwrites first field name in datawizard/X axis dialog when no kstrc is present

Andrew Walker arwalker at sumusltd.com
Wed Dec 7 19:39:34 CET 2005


------- 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=115988         
arwalker sumusltd com changed:

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



------- Additional Comments From arwalker sumusltd com  2005-12-07 19:39 -------
SVN commit 486401 by arwalker:

BUG:115988 Do not assume that a datasource is going to provide and INDEX vector

 M  +4 -2      datawizard.ui.h  


--- trunk/extragear/graphics/kst/kst/datawizard.ui.h #486400:486401
 @ -217,9 +217,11  @
 
 	KST::vectorDefaults.sync();
 	QString defaultX = KST::vectorDefaults.wizardXVector();
-	if (defaultX == "INDEX" || fl.contains(defaultX)) {
+	if (fl.contains(defaultX)) {
 	    _xVector->setCurrentText(defaultX);
-	}
+	} else {
+	    _xVector->setCurrentItem(0);
+	}                
 	_file = file;
     } else {
 	_fileType->setText(QString::null);


More information about the Kst mailing list