Skip to content

Commit 827b577

Browse files
committed
rtklib 2.4.2 p4
1 parent 3855c3d commit 827b577

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

app/srctblbrows/browsmain.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ TMainForm *MainForm;
2323

2424
static char buff[MAXSRCTBL]; // source table buffer
2525

26+
//---------------------------------------------------------------------------
27+
static double str2dbl(AnsiString str)
28+
{
29+
double val=0.0;
30+
sscanf(str.c_str(),"%lf",&val);
31+
return val;
32+
}
2633
/* get source table -------------------------------------------------------*/
2734
static char *getsrctbl(const char *path)
2835
{
@@ -493,7 +500,7 @@ void __fastcall TMainForm::ShowMsg(const char *msg)
493500
//---------------------------------------------------------------------------
494501
void __fastcall TMainForm::UpdateMap(void)
495502
{
496-
AnsiString title,msg;
503+
AnsiString title,msg,LatText,LonText;
497504
double lat,lon;
498505

499506
if (Address->Text=="") {
@@ -506,8 +513,10 @@ void __fastcall TMainForm::UpdateMap(void)
506513

507514
for (int i=1;i<Table0->RowCount;i++) {
508515
if (Table0->Cells[8][i]=="") continue;
509-
lat=Table0->Cells[8][i].ToDouble();
510-
lon=Table0->Cells[9][i].ToDouble();
516+
LatText=Table0->Cells[8][i];
517+
LonText=Table0->Cells[9][i];
518+
lat=str2dbl(LatText);
519+
lon=str2dbl(LonText);
511520
title=Table0->Cells[0][i];
512521
msg="<b>"+Table0->Cells[0][i]+"</b>: "+
513522
Table0->Cells[1][i]+" ("+Table0->Cells[7][i]+"), POS: "+

0 commit comments

Comments
 (0)