[gimp] modules: say "(unnamed profile)" when a color profile provides no name
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] modules: say "(unnamed profile)" when a color profile provides no name
- Date: Tue, 25 Sep 2012 18:57:49 +0000 (UTC)
commit e8b24abbf732698443364e697107a25659999c36
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 25 20:56:05 2012 +0200
modules: say "(unnamed profile)" when a color profile provides no name
inatead of showing an empty label
modules/display-filter-lcms.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/display-filter-lcms.c b/modules/display-filter-lcms.c
index cf50502..1a1800a 100644
--- a/modules/display-filter-lcms.c
+++ b/modules/display-filter-lcms.c
@@ -209,6 +209,9 @@ cdisplay_lcms_profile_get_info (cmsHPROFILE profile,
*name = g_strdup (_("(invalid UTF-8 string)"));
}
+ if (! *name)
+ *name = g_strdup ("(unnamed profile)");
+
descSize = cmsGetProfileInfoASCII (profile, cmsInfoManufacturer,
"en", "US", NULL, 0);
if (descSize > 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]