[Rawstudio-commit] r3028 - in branches/rawstudio-ng-color: librawstudio src

Klaus Post klauspost at gmail.com
Mon Jan 18 17:02:51 CET 2010


Author: post
Date: 2010-01-18 17:02:51 +0100 (Mon, 18 Jan 2010)
New Revision: 3028

Modified:
   branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c
   branches/rawstudio-ng-color/src/rs-cache.c
   branches/rawstudio-ng-color/src/rs-camera-db.c
Log:
Only save filename of dcp profile, so they can be moved around.

Modified: branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c	2010-01-18 15:59:15 UTC (rev 3027)
+++ branches/rawstudio-ng-color/librawstudio/rs-dcp-factory.c	2010-01-18 16:02:51 UTC (rev 3028)
@@ -120,7 +120,7 @@
 	{
 		RSDcpFile *dcp = RS_DCP_FILE(node->data);
 
-		if (g_str_equal(path, rs_tiff_get_filename(RS_TIFF(dcp))))
+		if (g_str_equal(path, rs_tiff_get_filename_nopath(RS_TIFF(dcp))))
 			ret = dcp;
 	}
 

Modified: branches/rawstudio-ng-color/src/rs-cache.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-cache.c	2010-01-18 15:59:15 UTC (rev 3027)
+++ branches/rawstudio-ng-color/src/rs-cache.c	2010-01-18 16:02:51 UTC (rev 3028)
@@ -78,7 +78,7 @@
 	RSDcpFile *dcp = rs_photo_get_dcp_profile(photo);
 	if (RS_IS_DCP_FILE(dcp))
 		xmlTextWriterWriteFormatElement(writer, BAD_CAST "dcp-profile", "%s",
-			rs_tiff_get_filename(RS_TIFF(dcp)));
+			rs_tiff_get_filename_nopath(RS_TIFF(dcp)));
 
 	if (photo->crop)
 	{

Modified: branches/rawstudio-ng-color/src/rs-camera-db.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-camera-db.c	2010-01-18 15:59:15 UTC (rev 3027)
+++ branches/rawstudio-ng-color/src/rs-camera-db.c	2010-01-18 16:02:51 UTC (rev 3028)
@@ -370,7 +370,7 @@
 			if (profile)
 			{
 				if (RS_IS_DCP_FILE(profile))
-					xmlTextWriterWriteFormatElement(writer, BAD_CAST "dcp-profile", "%s", rs_tiff_get_filename(RS_TIFF(profile)));
+					xmlTextWriterWriteFormatElement(writer, BAD_CAST "dcp-profile", "%s", rs_tiff_get_filename_nopath(RS_TIFF(profile)));
 				/* FIXME: Add support for ICC profiles */
 			}
 




More information about the Rawstudio-commit mailing list