This commit is contained in:
Austen Adler 2014-06-19 11:48:16 -04:00
parent 899c0a6543
commit e8448b97bd

View File

@ -48,8 +48,9 @@ void Picture::on_erase_clicked(){
a[tmp2.size()]=0; a[tmp2.size()]=0;
memcpy(a,tmp2.c_str(),tmp2.size()); memcpy(a,tmp2.c_str(),tmp2.size());
//exec(a); //exec(a);
ui->log->append(str); //ui->log->append(str);
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(str.toStdString()); QString fullPath=directory.absolutePath()+"/"+str;
Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(fullPath.toStdString());
assert (image.get() != 0); assert (image.get() != 0);
image->readMetadata(); image->readMetadata();
Exiv2::ExifData &exifData = image->exifData(); Exiv2::ExifData &exifData = image->exifData();