Fixed BitsPerSample tag in TIFF output header

see issue 1311
This commit is contained in:
Oliver Duis
2012-04-16 07:44:47 +02:00
parent ad956f17f7
commit 364868b394

View File

@@ -1504,7 +1504,8 @@ int ExifManager::createTIFFHeader (const TagDirectory* root, const rtengine::pro
defTags[0]->setInt (W, 0, LONG);
defTags[1]->setInt (H, 0, LONG);
defTags[8]->setInt (bps, 0, SHORT);
defTags[8]->initInt(0, SHORT, 3);
for (int i=0;i<3;i++) defTags[8]->setInt(bps, i*2, SHORT);
for (int i=defTags.size()-1; i>=0; i--)
cl->replaceTag (defTags[i]->clone (cl));