[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:43:23 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=d8bb484
The following commit has been merged in the master branch:
commit d8bb48438c8d23e5e6e069dfe42ab690b9576c25
Author: vog <vog at notjusthosting.com>
Date: Fri Sep 14 16:06:20 2012 +0000
Add more EPS debug output
---
src/epsimage.cpp | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/epsimage.cpp b/src/epsimage.cpp
index 06fd2d5..c937942 100644
--- a/src/epsimage.cpp
+++ b/src/epsimage.cpp
@@ -839,6 +839,9 @@ namespace {
for (std::vector<size_t>::const_iterator i = positions.begin(); i != positions.end(); i++) {
const size_t pos = *i;
if (pos == prevPos) continue;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Writing at " << pos << "
";
+ #endif
if (pos < prevSkipPos) {
#ifndef SUPPRESS_WARNINGS
EXV_WARNING << "Internal error while assembling the result EPS document: "
@@ -861,21 +864,33 @@ namespace {
if (line == "%%LanguageLevel:1" || line == "%%LanguageLevel: 1") {
writeTemp(*tempIo, "%%LanguageLevel: 2" + lineEnding);
skipPos = posLineEnd;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
}
if (pos == posContainsXmp && posContainsXmp != posEndEps) {
if (line != containsXmpLine) {
writeTemp(*tempIo, containsXmpLine + lineEnding);
skipPos = posLineEnd;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
}
if (pos == posExiv2Version && posExiv2Version != posEndEps) {
writeTemp(*tempIo, "%Exiv2Version: " + versionNumberHexString() + lineEnding);
skipPos = posLineEnd;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
if (pos == posExiv2Website && posExiv2Website != posEndEps) {
writeTemp(*tempIo, "%Exiv2Website: http://www.exiv2.org/" + lineEnding);
skipPos = posLineEnd;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
if (pos == posEndComments) {
if (posLanguageLevel == posEndEps && !deleteXmp && !useFlexibleEmbedding) {
@@ -912,12 +927,18 @@ namespace {
}
writeTemp(*tempIo, xmpPacket);
skipPos += xmpSize;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
} else {
// remove preceding embedding(s)
for (std::vector<std::pair<size_t, size_t> >::const_iterator e = removableEmbeddings.begin(); e != removableEmbeddings.end(); e++) {
if (pos == e->first) {
skipPos = e->second;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
break;
}
}
@@ -974,6 +995,9 @@ namespace {
if (pos == posPageTrailer && !deleteXmp) {
if (!implicitPageTrailer) {
skipPos = posLineEnd;
+ #ifdef DEBUG
+ EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "
";
+ #endif
}
writeTemp(*tempIo, "%%PageTrailer" + lineEnding);
writeTemp(*tempIo, "%Exiv2BeginXMP: After %%PageTrailer" + lineEnding);
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list