summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-13 18:40:00 (GMT)
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-13 18:40:00 (GMT)
commit315ab418be7f159aa42ebd383c89769b3bc2bb83 (patch)
tree660b8bb1e93bc62756edd2c1b91323bde4aac898
parent7ce610a50e70d70470671d26836f6556bcd9ad23 (diff)
simplify
-rw-r--r--src/lib/marble/PlacemarkLayout.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/marble/PlacemarkLayout.cpp b/src/lib/marble/PlacemarkLayout.cpp
index 8bb26e7..8e996a5 100644
--- a/src/lib/marble/PlacemarkLayout.cpp
+++ b/src/lib/marble/PlacemarkLayout.cpp
@@ -618,11 +618,8 @@ GeoDataCoordinates PlacemarkLayout::placemarkIconCoordinates( const GeoDataPlace
{
bool ok;
GeoDataCoordinates coordinates = placemark->coordinate( m_clock->dateTime(), &ok );
- if ( !ok && m_acceptedVisualCategories.contains(placemark->visualCategory()) ) {
- ok = true;
- }
- if ( ok ) {
+ if (ok || m_acceptedVisualCategories.contains(placemark->visualCategory())) {
return coordinates;
}