The following commit has been merged in the master branch:
commit 838a55ce3948667f5a958c1b72c27def2390540f
Author: Andrei Zavada <[email protected]>
Date:   Sun Feb 3 12:46:03 2013 +0200

    suppress drawing of >500 matches in SF Patterns dialog

diff --git a/src/ui/sf/d/patterns-draw.cc b/src/ui/sf/d/patterns-draw.cc
index e9c9609..a1e871a 100644
--- a/src/ui/sf/d/patterns-draw.cc
+++ b/src/ui/sf/d/patterns-draw.cc
@@ -188,7 +188,10 @@ draw_field( cairo_t *cr)
        cairo_stroke( cr);
 
       // occurrences
-       if ( occurrences.size() ) {
+       if ( occurrences.size() > 500 )
+               aghui::cairo_put_banner(
+                       cr, da_field_wd, da_field_ht / .75, "Too many; reduce 
strictness?");
+       else if ( occurrences.size() > 0 ) {
                cairo_set_line_width( cr, 1.);
                for ( size_t o = 0; o < occurrences.size(); ++o ) {
                        auto x = (double)occurrences[o]/diff_line.size() * 
da_field_wd;

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to