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();