Author: al
Date: 2009-12-31 05:13:27 +0100 (Thu, 31 Dec 2009)
New Revision: 2953
Modified:
trunk/librawstudio/rs-icc-profile.c
Log:
Using more generic way to make sure path is absolute.
Modified: trunk/librawstudio/rs-icc-profile.c
===================================================================
--- trunk/librawstudio/rs-icc-profile.c 2009-12-31 03:32:20 UTC (rev 2952)
+++ trunk/librawstudio/rs-icc-profile.c 2009-12-31 04:13:27 UTC (rev 2953)
@@ -280,7 +280,7 @@
rs_icc_profile_new_from_file(const gchar *path)
{
g_assert(path != NULL);
- g_assert(path[0] == G_DIR_SEPARATOR);
+ g_assert(g_path_is_absolute(path));
RSIccProfile *profile = g_object_new (RS_TYPE_ICC_PROFILE, "filename",
path, NULL);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit