Skip to content

Commit

Permalink
Fix preview being cut off
Browse files Browse the repository at this point in the history
Use methods on the PreviewImage instead of getting stuff from the
iterator thing
  • Loading branch information
valpackett committed Jul 5, 2017
1 parent 41a831f commit 393be36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exiv2node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ class GetPreviewsWorker : public Exiv2Worker {
for (Exiv2::PreviewPropertiesList::iterator pos = list.begin(); pos != list.end(); pos++) {
Exiv2::PreviewImage image = manager.getPreviewImage(*pos);

previews.push_back(Preview(pos->mimeType_, pos->height_,
pos->width_, (char*) image.pData(), pos->size_));
previews.push_back(Preview(image.mimeType(), image.height(),
image.width(), (char*) image.pData(), image.size()));
}
} catch (std::exception& e) {
exifException.append(e.what());
Expand Down

0 comments on commit 393be36

Please sign in to comment.