[poppler] 2 commits - glib/test-poppler-glib.cc poppler/GlobalParams.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu Nov 1 13:45:32 PDT 2007
glib/test-poppler-glib.cc | 4 ++--
poppler/GlobalParams.cc | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
New commits:
commit cb80112afed2c5b9642c3c43f1cc001ed88d08cb
Author: Jonathan Kew <jonathan_kew at sil.org>
Date: Thu Nov 1 20:53:05 2007 +0100
Do not try to parse directories when processing nameToUnicode dir. Fixes ugly warnings on mingw32
diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index cf97e78..21b5044 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -655,9 +655,11 @@ void GlobalParams::scanEncodingDirs() {
GDir *dir;
GDirEntry *entry;
- dir = new GDir(POPPLER_DATADIR "/nameToUnicode", gFalse);
+ dir = new GDir(POPPLER_DATADIR "/nameToUnicode", gTrue);
while (entry = dir->getNextEntry(), entry != NULL) {
- parseNameToUnicode(entry->getFullPath());
+ if (!entry->isDir()) {
+ parseNameToUnicode(entry->getFullPath());
+ }
delete entry;
}
delete dir;
commit ad6b888edff7b30be72df948c4052b9934a37705
Author: Albert Astals Cid <tsdgeos at bluebox.localdomain>
Date: Thu Nov 1 20:48:21 2007 +0100
Add some castings to make it compile
diff --git a/glib/test-poppler-glib.cc b/glib/test-poppler-glib.cc
index 6c8e840..a3cc38e 100644
--- a/glib/test-poppler-glib.cc
+++ b/glib/test-poppler-glib.cc
@@ -415,7 +415,7 @@ int main (int argc, char *argv[])
printf ("\tFound text \"Bitwise\" at positions:\n");
for (l = list; l != NULL; l = l->next)
{
- PopplerRectangle *rect = l->data;
+ PopplerRectangle *rect = (PopplerRectangle *)l->data;
printf (" (%f,%f)-(%f,%f)\n", rect->x1, rect->y1, rect->x2, rect->y2);
}
@@ -486,7 +486,7 @@ int main (int argc, char *argv[])
char *filename, *strdate;
filename = g_strdup_printf ("/tmp/attach%d", i);
- attachment = l->data;
+ attachment = (PopplerAttachment *)l->data;
g_print ("\tname: %s\n", attachment->name);
g_print ("\tdescription: %s\n", attachment->description);
g_print ("\tsize: %d\n", attachment->size);
More information about the poppler
mailing list