Fixed bug
This commit is contained in:
parent
d0762c116f
commit
7f0af8f392
@ -103,6 +103,7 @@ public class Main {
|
||||
g.setFont(ARIAL44I);
|
||||
g.drawString(location, 59, 447 - doubleNumOffset - longAddrOffset);
|
||||
|
||||
if (fm.stringWidth(address) >= 694) {
|
||||
|
||||
StringBuilder addrLineOne = new StringBuilder();
|
||||
StringBuilder addrLineTwo = new StringBuilder();
|
||||
@ -120,6 +121,7 @@ public class Main {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (; i < splitAddr.length; i++) {
|
||||
addrLineTwo.append(splitAddr[i]);
|
||||
addrLineTwo.append(",");
|
||||
@ -129,6 +131,9 @@ public class Main {
|
||||
g.setFont(ARIAL38I);
|
||||
g.drawString(addrLineOne.toString().trim(), 59, 491 - doubleNumOffset - longAddrOffset);
|
||||
g.drawString(addrLineTwo.toString().trim(), 59, 491 - doubleNumOffset);
|
||||
} else {
|
||||
g.drawString(address, 59, 491 - doubleNumOffset);
|
||||
}
|
||||
|
||||
String number = "";
|
||||
if (hasExtension && !hasCell) {
|
||||
|
Loading…
Reference in New Issue
Block a user