From e8448b97bddd6bba0815fe2958f80ce2d449fd99 Mon Sep 17 00:00:00 2001 From: Austen Date: Thu, 19 Jun 2014 11:48:16 -0400 Subject: [PATCH] Fixes #1 --- picture.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/picture.cpp b/picture.cpp index 3dc6223..d527653 100644 --- a/picture.cpp +++ b/picture.cpp @@ -48,8 +48,9 @@ void Picture::on_erase_clicked(){ a[tmp2.size()]=0; memcpy(a,tmp2.c_str(),tmp2.size()); //exec(a); - ui->log->append(str); - Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(str.toStdString()); + //ui->log->append(str); + QString fullPath=directory.absolutePath()+"/"+str; + Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fullPath.toStdString()); assert (image.get() != 0); image->readMetadata(); Exiv2::ExifData &exifData = image->exifData();