booh: dont abort on multiple selection containing an element without a valid pixbuf...
[booh] / bin / booh
index 5006065690f8a3d126fd75a9cab8e5f13e7942b7..23c49ea9492994e6f483d19fb9faeabfed556b0d 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -1730,7 +1730,9 @@ def create_auto_table
             if ym < press_y && ym > pos_y || ym < pos_y && ym > press_y
                 if (xm < press_x && xm > pos_x || xm < pos_x && xm > press_x) && ! $selected_elements[path]
                     $selected_elements[path] = { :pixbuf => $name2widgets[path][:img].pixbuf }
-                    $name2widgets[path][:img].pixbuf = $name2widgets[path][:img].pixbuf.saturate_and_pixelate(1, true)
+                    if $name2widgets[path][:img].pixbuf
+                        $name2widgets[path][:img].pixbuf = $name2widgets[path][:img].pixbuf.saturate_and_pixelate(1, true)
+                    end
                 end
             end
             if $selected_elements[path] && ! $selected_elements[path][:keep]