aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2013-11-09 05:02:51 -0800
committerrsudev <rasch@munin-soft.de>2013-11-09 05:02:51 -0800
commit4281e11bd1856cf7fd0e6467b009f23c9a78be77 (patch)
tree026a9edd26e53601e7c71d8aa8ba2c405595ea3f /main/src/cgeo
parentb3df57e051885b4819b3b6527400b8de6e2e2a27 (diff)
parent01f6c1185d8d24760a802e40e6a2c5a5b7705df8 (diff)
downloadcgeo-4281e11bd1856cf7fd0e6467b009f23c9a78be77.zip
cgeo-4281e11bd1856cf7fd0e6467b009f23c9a78be77.tar.gz
cgeo-4281e11bd1856cf7fd0e6467b009f23c9a78be77.tar.bz2
Merge pull request #3417 from marco-dev/fixDetailedNullAttributes
fixes #3370 #2960 #1320 - keep empty and null values
Diffstat (limited to 'main/src/cgeo')
-rw-r--r--main/src/cgeo/geocaching/Geocache.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 35d6c17..7c3a2d6 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -253,7 +253,7 @@ public class Geocache implements ICache, IWaypoint {
if (hidden == null) {
hidden = other.hidden;
}
- if (StringUtils.isBlank(getHint())) {
+ if (!detailed && StringUtils.isBlank(getHint())) {
hint = other.getHint();
}
if (size == null || CacheSize.UNKNOWN == size) {
@@ -284,7 +284,7 @@ public class Geocache implements ICache, IWaypoint {
final PersonalNote mergedNote = myNote.mergeWith(otherNote);
personalNote = mergedNote.toString();
}
- if (StringUtils.isBlank(getShortDescription())) {
+ if (!detailed && StringUtils.isBlank(getShortDescription())) {
shortdesc = other.getShortDescription();
}
if (StringUtils.isBlank(getDescription())) {
@@ -304,7 +304,7 @@ public class Geocache implements ICache, IWaypoint {
if (myVote == 0) {
myVote = other.myVote;
}
- if (attributes.isEmpty()) {
+ if (!detailed && attributes.isEmpty()) {
attributes.clear();
if (other.attributes != null) {
attributes.addAll(other.attributes);