~ubuntu-branches/ubuntu/utopic/gpsprune/utopic

« back to all changes in this revision

Viewing changes to tim/prune/data/Coordinate.java

  • Committer: Package Import Robot
  • Author(s): Mònica Ramírez Arceda
  • Date: 2013-05-15 10:26:51 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20130515102651-130bcw88wox3u0q0
Tags: 15-1
* New upstream version
  - "nautical mile" is added to unit selector (Closes: #639503)
* debian/control:
  - Add myself as an uploader
  - Standards-Version bump to 3.9.4, no changes needed
* debian/copyright:
  - Add required Copyright field to tim/prune/function/srtm/gen/ files
  - Update years
* debian/scripts/gpsprune:
  - Fix sed commands, when there is no host/port, proxyhost/proxyport
    variables must be empty.
    Thanks to Simó Albert i Beltran <sim6@probeta.net> and to
    <debian@activityworkshop.net> for the patch!

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
                        // count numeric fields - 1=d, 2=dm, 3=dm.m/dms, 4=dms.s
86
86
                        int numFields = 0;
87
 
                        boolean inNumeric = false;
 
87
                        boolean isNumeric = false;
88
88
                        char currChar;
89
89
                        long[] fields = new long[4]; // needs to be long for lengthy decimals
90
90
                        long[] denoms = new long[4];
97
97
                                        currChar = inString.charAt(i);
98
98
                                        if (currChar >= '0' && currChar <= '9')
99
99
                                        {
100
 
                                                if (!inNumeric)
 
100
                                                if (!isNumeric)
101
101
                                                {
102
 
                                                        inNumeric = true;
 
102
                                                        isNumeric = true;
103
103
                                                        numFields++;
104
104
                                                        denoms[numFields-1] = 1;
105
105
                                                }
111
111
                                        }
112
112
                                        else
113
113
                                        {
114
 
                                                inNumeric = false;
 
114
                                                isNumeric = false;
115
115
                                                // Remember delimiters
116
116
                                                if (currChar != ',' && currChar != '.') {otherDelims[numFields] = true;}
117
117
                                        }