Commit dc49e7b6 authored by Cyrille Berger's avatar Cyrille Berger

forward port a crash fix when saving two time a .kra file with exif info

svn path=/trunk/koffice/; revision=542996
parent 5def369f
...@@ -339,6 +339,7 @@ QDomElement ExifValue::save(QDomDocument& doc) ...@@ -339,6 +339,7 @@ QDomElement ExifValue::save(QDomDocument& doc)
QByteArray data = QByteArray::fromRawData((char*)value.data(), value.size()); QByteArray data = QByteArray::fromRawData((char*)value.data(), value.size());
QByteArray encodedData; QByteArray encodedData;
KCodecs::base64Encode( data, encodedData ); KCodecs::base64Encode( data, encodedData );
data.resetRawData( (char*)value.data(), value.size());
elmt.setAttribute("value", QString(encodedData)); elmt.setAttribute("value", QString(encodedData));
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment