[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] fixing KStars bug #68401
From: Jason Harris <kstars () 30doradus ! org>
Date: 2003-11-27 21:36:40
[Download RAW message or body]
Hello,
Are normal bugfixes allowed yet in CVS, or just "critical" fixes? I'd
like to apply the appended patch to fix bug #68401. Ok to commit?
BTW, if someone who uses a decimal symbol other than "." could test the
patch, I'd appreciate it :)
regards,
Jason
--
KStars: A KDE Planetarium
http://edu.kde.org/kstars
===================================================================
RCS file: /home/kde/kdeedu/kstars/kstars/dms.cpp,v
retrieving revision 1.23
diff -u -3 -p -r1.23 dms.cpp
--- dms.cpp 31 Aug 2003 00:18:21 -0000 1.23
+++ dms.cpp 27 Nov 2003 21:31:30 -0000
@@ -22,6 +22,8 @@
#include "skypoint.h"
#include "dms.h"
+#include <kglobal.h>
+#include <klocale.h>
#include <qregexp.h>
//DMS_SPEED
@@ -73,6 +75,10 @@ bool dms::setFromString( const QString &
entry.replace( QRegExp("\'"), "" );
entry.replace( QRegExp("\""), "" );
+ //Account for localized decimal-point settings
+ //QString::toDouble() requires that the decimal symbol is "."
+ entry.replace( KGlobal::locale()->decimalSymbol(), "." );
+
//empty entry returns false
if ( entry.isEmpty() ) {
setD( 0.0 );
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic