Brought over long/latitude fix from "rounding_line_visible_hack" branch.

This commit is contained in:
fjc40
2017-08-18 21:58:31 +12:00
parent b886cb426f
commit 0d2be85d17
@@ -142,7 +142,7 @@ public class CompoundMark extends XMLCompoundMark{
/**
* Used to find how far apart the marks that make up this gate are
* If this compound mark is only one point return base length of 250m
* If this compound mark is only one point return base length of 400m
* @return the acceptable distance to round a mark
*/
public double getRoundingDistance(){
@@ -187,7 +187,7 @@ public class CompoundMark extends XMLCompoundMark{
}
//finds the mark furthest west and east
if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){
if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){
westMostMark = this.mark1;
eastMostMark = this.mark2;
}else{
@@ -196,7 +196,7 @@ public class CompoundMark extends XMLCompoundMark{
}
//finds the mark furthest north and south
if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){
if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){
northMostMark = this.mark1;
southMostMark = this.mark2;
}else{