diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2011-11-15 06:28:49 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2011-11-15 06:28:49 +0100 |
| commit | cc8cd8438ad71a1315175dd2ac5c0a72c37c51c1 (patch) | |
| tree | 5a55eb5e1a5e58f044a7fdb14b81684757d2b362 /main/src | |
| parent | 91297b8e381d1799066d2bbf14d95e5d071ce273 (diff) | |
| download | cgeo-cc8cd8438ad71a1315175dd2ac5c0a72c37c51c1.zip cgeo-cc8cd8438ad71a1315175dd2ac5c0a72c37c51c1.tar.gz cgeo-cc8cd8438ad71a1315175dd2ac5c0a72c37c51c1.tar.bz2 | |
fix: using "no rating" sets a rating of 0.5 stars
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index c2ee127..3b8b3e1 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -323,6 +323,9 @@ public class VisitCacheActivity extends cgLogForm { return true; } else if (id >= 10 && id <= 19) { rating = (id - 9) / 2.0; + if (rating < 1) { + rating = 0; + } updatePostButtonText(); return true; } |
