Author: post
Date: 2012-01-31 22:08:51 +0100 (Tue, 31 Jan 2012)
New Revision: 4123
Modified:
trunk/src/rs-toolbox.c
Log:
Be sure to remove embedded profile, if moving to an image without profile.
Modified: trunk/src/rs-toolbox.c
===================================================================
--- trunk/src/rs-toolbox.c 2012-01-31 20:27:27 UTC (rev 4122)
+++ trunk/src/rs-toolbox.c 2012-01-31 21:08:51 UTC (rev 4123)
@@ -1126,9 +1126,9 @@
/* Enable Embedded Profile, if present */
gboolean embedded_present = photo && (!!photo->embedded_profile);
+ RSProfileFactory *factory = rs_profile_factory_new_default();
if (embedded_present && photo->input_response)
{
- RSProfileFactory *factory = rs_profile_factory_new_default();
RSColorSpace *input_space =
rs_filter_param_get_object_with_type(RS_FILTER_PARAM(photo->input_response),
"embedded-colorspace", RS_TYPE_COLOR_SPACE);
if (input_space)
@@ -1139,11 +1139,11 @@
rs_profile_factory_set_embedded_profile(factory,
icc_profile);
embedded_present = TRUE;
}
- else
- {
- rs_profile_factory_set_embedded_profile(factory, NULL);
- }
}
+ else
+ {
+ rs_profile_factory_set_embedded_profile(factory, NULL);
+ }
/* Update profile selector */
if (photo && photo->metadata)
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit