Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > fdd5516d473f7d701ab041d0cfd7ea61 > files > 2

alexandria-0.6.3-4mdv2009.0.src.rpm

--- alexandria-0.6.3.orig/lib/alexandria/ui/iconview_tooltips.rb
+++ alexandria-0.6.3/lib/alexandria/ui/iconview_tooltips.rb
@@ -82,19 +82,20 @@
     if (title.size > 0) or (authors.size > 0)
       html += "\n"
     end
-    if (publisher.size > 0) or (year.size > 0)
-      html += "<small>"
-      if publisher.size > 0
-        html += "#{publisher}"
-      end
-      if year.size > 0
-        if publisher.size > 0
-          html += " "
-        end
-        html += "(#{year})"
+
+    html += "<small>"
+    if publisher and publisher.size > 0
+      html += "#{publisher}"
+    end
+
+    if year and year.size > 0
+      if publisher and publisher.size > 0
+        html += " "
       end
-      html += "</small>"
+      html += "(#{year})"
     end
+
+    html += "</small>"
   end
 
   def on_motion(view, event)