On Sat 19 Jan 2013 04:18:32 PM CET, Frederic Crozat wrote:
2013/1/19 Simon Harhues <[email protected]>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Am 19.01.2013 15:24, schrieb Frederic Crozat:
If
you don't specify any value as color label, it acts as a wildcard (on
1.1.x).
for me it doesn't, but just displays images with the red (=first) colour
label. Using darktable 1.1.2
Oh, indeed, I just happened to test with red color label.
Then I guess Max patch should go in.
--
Frederic Crozat
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel
I recreated the patch with after a comment from houz, not to mark the
"%" as to translate.
diff --git a/src/common/collection.c b/src/common/collection.c
index cd84566..de00069 100644
--- a/src/common/collection.c
+++ b/src/common/collection.c
@@ -454,6 +454,7 @@ get_query_string(const dt_collection_properties_t property, const gchar *escaped
else if(strcmp(escaped_text,_("blue") )==0) color=3;
else if(strcmp(escaped_text,_("purple"))==0) color=4;
snprintf(query, 1024, "(id in (select imgid from color_labels where color=%d))", color);
+ if (strcmp(escaped_text,"%" )==0) snprintf(query, 1024, "(id in (select imgid from color_labels where color IS NOT NULL))");
}
break;
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel