[Digikam-devel] [Bug 118501] exifs lost when modifying the images
Marcel Wiesweg
marcel.wiesweg at gmx.de
Sun Apr 30 18:54:39 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=118501
marcel.wiesweg gmx de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From marcel.wiesweg gmx de 2006-04-30 19:54 -------
SVN commit 535907 by mwiesweg:
digikam stable branch:
Add write permission when copying permissions of original file to temp file
so that std::ofstream of temp file can open the file.
BUG: 118501
M +4 -1 imlibinterface.cpp
--- branches/stable/extragear/graphics/digikam/utilities/imageeditor/imlibinterface.cpp #535906:535907
@ -1200,7 +1200,10 @
// file saved. now preserve the permissions
if (d->filePermissions != 0)
{
- ::chmod(QFile::encodeName(saveFile), d->filePermissions);
+ // Add the user write permission.
+ // There is a problem with lost Exif info on read only files,
+ // and there won't be sophisticated handling for this in the 0.8 branch any more.
+ ::chmod(QFile::encodeName(saveFile), d->filePermissions | S_IWRITE);
}
return true;
More information about the Digikam-devel
mailing list