Skip to content

Commit

Permalink
fix SpotRec
Browse files Browse the repository at this point in the history
  • Loading branch information
Utyff committed Mar 11, 2018
1 parent 48e6d74 commit 72aebe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:appcompat-v7:27.1.0'
compile 'com.android.support:design:27.1.0'
compile 'org.apache.commons:commons-lang3:3.4'
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
public class VEC_Element_SpotRect extends VEC_Element {
float x,y,w,h;
float x2,y2,w2,h2; // not scaled for hit check
String action;
private String action;

public VEC_Element_SpotRect(String param, VEC vv) {
super(vv);

String[] strs=param.split(",");
if( strs.length < 5 ) Log.e("VEC_SpotRect /16", "Wrong parameters. <" + param + "> ");
if( strs.length < 4 ) Log.e("VEC_SpotRect /16", "Not enough parameters. Must be more then 4 but got: <" + param + ">");

x2 = ExtInteger.parseInt(strs[0]);
y2 = ExtInteger.parseInt(strs[1]);
Expand All @@ -26,7 +26,7 @@ public VEC_Element_SpotRect(String param, VEC vv) {
y = y2*v.scale;
w = w2*v.scale;
h = h2*v.scale;
action = strs[4].trim();
action = strs.length < 5 ? "" : strs[4].trim();
}

@Override
Expand Down

0 comments on commit 72aebe7

Please sign in to comment.