[Kstars-devel] branches/KDE/4.1/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Mon Jan 5 18:52:12 CET 2009
SVN commit 906170 by asimha:
Backporting further fix to bug 179034. Quoting the original commit
log:
----
Fixing (further) problems with the FOV editor. The localized versions
would accept FOVs that were formatted in the localized format (60,00
in German, for instance) but wouldn't work. This was because the same
bug had to be fixed in two other places.
The FOV editor now seems to work correctly.
----
CCMAIL: kstars-devel at kde.org
M +2 -2 fovdialog.cpp
--- branches/KDE/4.1/kdeedu/kstars/kstars/fovdialog.cpp #906169:906170
@@ -131,7 +131,7 @@
NewFOV newfdlg( this );
if ( newfdlg.exec() == QDialog::Accepted ) {
- FOV *newfov = new FOV( newfdlg.ui->FOVName->text(), newfdlg.ui->FOVEdit->text().toDouble(),
+ FOV *newfov = new FOV( newfdlg.ui->FOVName->text(), newfdlg.ui->FOVEdit->text().replace( KGlobal::locale()->decimalSymbol(), "." ).toDouble(),
newfdlg.ui->ShapeBox->currentIndex(), newfdlg.ui->ColorButton->color().name() );
FOVList.append( newfov );
@@ -156,7 +156,7 @@
newfdlg.slotUpdateFOV();
if ( newfdlg.exec() == QDialog::Accepted ) {
- FOV *newfov = new FOV( newfdlg.ui->FOVName->text(), newfdlg.ui->FOVEdit->text().toDouble(),
+ FOV *newfov = new FOV( newfdlg.ui->FOVName->text(), newfdlg.ui->FOVEdit->text().replace( KGlobal::locale()->decimalSymbol(), "." ).toDouble(),
newfdlg.ui->ShapeBox->currentIndex(), newfdlg.ui->ColorButton->color().name() );
fov->FOVListBox->currentItem()->setText( newfdlg.ui->FOVName->text() );
More information about the Kstars-devel
mailing list