[niepce] [niepce] Fix format warning.
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce] [niepce] Fix format warning.
- Date: Sat, 23 May 2009 03:31:01 -0400 (EDT)
commit 1f553e5dfe058917d6b3583c75f0597d4df70dfd
Author: Hubert Figuiere <hub figuiere net>
Date: Fri May 22 15:52:27 2009 -0400
[niepce] Fix format warning.
---
ChangeLog | 3 +++
src/engine/library/thumbnailcache.cpp | 22 +++++++++++-----------
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9245258..c3004f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-05-22 Hubert Figuiere <hub figuiere net>
+ * src/engine/library/thumbnailcache.cpp:
+ Fix format warning.
+
* src/fwk/utils/gphoto.{hpp,cpp}:
GpDevice implementation.
diff --git a/src/engine/library/thumbnailcache.cpp b/src/engine/library/thumbnailcache.cpp
index 9f0fd23..7503482 100644
--- a/src/engine/library/thumbnailcache.cpp
+++ b/src/engine/library/thumbnailcache.cpp
@@ -75,7 +75,7 @@ namespace eng {
DBG_OUT("MIME type %s", mime_type.string().c_str());
if(mime_type.isUnknown()) {
- DBG_OUT("unknown file type", filename.c_str());
+ DBG_OUT("unknown file type %s", filename.c_str());
return;
}
if(!mime_type.isImage()) {
@@ -86,16 +86,16 @@ namespace eng {
Glib::RefPtr<Gdk::Pixbuf> pix;
if(!mime_type.isDigicamRaw()) {
DBG_OUT("not a raw type, trying GdkPixbuf loaders");
- try {
- pix = Gdk::Pixbuf::create_from_file(filename, w, h, true);
- if(pix) {
- pix = fwk::gdkpixbuf_exif_rotate(pix, task->file()->orientation());
- }
- }
- catch(const Glib::Error & e)
- {
- ERR_OUT("exception %s", e.what().c_str());
- }
+ try {
+ pix = Gdk::Pixbuf::create_from_file(filename, w, h, true);
+ if(pix) {
+ pix = fwk::gdkpixbuf_exif_rotate(pix, task->file()->orientation());
+ }
+ }
+ catch(const Glib::Error & e)
+ {
+ ERR_OUT("exception %s", e.what().c_str());
+ }
}
else {
GdkPixbuf *pixbuf = or_gdkpixbuf_extract_rotated_thumbnail(filename.c_str(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]