[babl] add ability to extract component with 1 component formats
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] add ability to extract component with 1 component formats
- Date: Fri, 16 Mar 2012 11:26:09 +0000 (UTC)
commit ba69dcba43d31279bcc27076fb15859e5ad520c9
Author: Ãyvind KolÃs <pippin gimp org>
Date: Fri Mar 16 11:25:59 2012 +0000
add ability to extract component with 1 component formats
babl/babl-format.c | 4 +++-
tests/Makefile.am | 3 +++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-format.c b/babl/babl-format.c
index 463a92b..d95384e 100644
--- a/babl/babl-format.c
+++ b/babl/babl-format.c
@@ -67,8 +67,10 @@ format_new (const char *name,
if (!component_found)
{
component_found = 0;
- babl_fatal ("matching source component for %s in model %s not found",
+#if 0 /* since babl does the right thing, let it happen */
+ babl_fatal("matching source component for %s in model %s not found",
model->component[i]->instance.name, model->instance.name);
+#endif
}
}
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e8fdd1d..8b9060d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,6 +10,8 @@ TESTS = \
sanity \
babl_class_name \
types \
+ extract \
+ nop \
n_components \
models \
$(CONCURRENCY_STRESS_TEST)
@@ -31,5 +33,6 @@ noinst_PROGRAMS = \
babl-html-dump \
conversions \
formats \
+ extract \
nop \
$(TESTS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]