[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:44:14 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=44939da

The following commit has been merged in the master branch:
commit 44939dab327596f0118668b5e96bca01f5bc7888
Author: Robin Mills <robin at clanmills.com>
Date:   Fri Aug 15 11:14:44 2014 +0000

    Topic: 1801 http://dev.exiv2.org/boards/3/topics/1801.  Thanks to Mike Erickson of Alien Skin Software for reporting this and providing the fix.
---
 src/olympusmn.cpp | 55 +++++++++++++++++++++++++++----------------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

diff --git a/src/olympusmn.cpp b/src/olympusmn.cpp
index fb31ac9..7f4a343 100644
--- a/src/olympusmn.cpp
+++ b/src/olympusmn.cpp
@@ -1441,34 +1441,33 @@ namespace Exiv2 {
 
         if (value.count() < 1 || value.typeId() != unsignedShort) {
             return os << "(" << value << ")";
-        }
-
-        uint16_t v = (uint16_t)value.toLong(0);
-
-        // If value 2 is present, it is used instead of value 1.
-        if (value.count() < 2) {
-            std::string p = "";    // Used to enable ',' separation
-
-            v = (uint16_t)value.toLong(1);
-            for (int i = 0; focusModes1[i].val != 0; i++) {
-                if ((v & focusModes1[i].val) != 0) {
-                    if (p.size() > 0) {
-                        os << ", ";
-                    }
-                    p = focusModes1[i].label;
-                    os << p;
-                }
-            }
-        } else {
-            v = (uint16_t)value.toLong(0);
-            for (int i = 0; focusModes0[i].val != 0xff; i++) {
-               if (focusModes0[i].val == v) {
-                   os << focusModes0[i].label;
-                   break;
-               }
-            }
-        }
-        return os << v;
+		} else {
+			uint16_t v = (uint16_t)value.toLong(0);
+
+			// If value 2 is present, it is used instead of value 1.
+			if (value.count() > 1) {
+				std::string p = "";    // Used to enable ',' separation
+
+				v = (uint16_t)value.toLong(1);
+				for (int i = 0; focusModes1[i].val != 0; i++) {
+					if ((v & focusModes1[i].val) != 0) {
+						if (p.size() > 0) {
+							os << ", ";
+						}
+						p = focusModes1[i].label;
+						os << p;
+					}
+				}
+			} else {
+				for (int i = 0; focusModes0[i].val != 0xff; i++) {
+				   if (focusModes0[i].val == v) {
+					   os << focusModes0[i].label;
+					   break;
+				   }
+				}
+			}
+			return os << v;
+		}
     } // OlympusMakerNote::printCs0x0301
 
     //! OlympusCs ArtFilter, tag 0x0529, OlympusCs MagicFilter, tag 0x052c

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list