summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69a77e0)
raw | patch | inline | side by side (parent: 69a77e0)
author | ishmal <ishmal@users.sourceforge.net> | |
Tue, 22 Apr 2008 18:28:41 +0000 (18:28 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Tue, 22 Apr 2008 18:28:41 +0000 (18:28 +0000) |
src/color-profile.cpp | patch | blob | history |
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 596e22d7a4e60e5d9db25370fb537bee2c6d4543..6f78699907fbcd093767b784ee9a04dc67ee70a9 100644 (file)
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -941,11 +941,8 @@ Glib::ustring Inkscape::colorprofile_set_display_per( gpointer buf, guint bufLen
id.clear();
if ( buf && bufLen ) {
- Md5Digest digest;
- if ( buf && bufLen ) {
- digest.append(reinterpret_cast<unsigned char*>(buf), bufLen);
- }
- id = digest.finishHex();
+ id = Digest::hashHex(Digest::HASH_MD5,
+ reinterpret_cast<unsigned char*>(buf), bufLen);
// Note: if this is not a valid profile, item.hprof will be set to null.
item.hprof = cmsOpenProfileFromMem(buf, bufLen);