Fix small bug
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 2 Nov 2013 16:41:30 +0000 (2 17:41 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 2 Nov 2013 16:41:30 +0000 (2 17:41 +0100)
* lisp/org.el (org-display-inline-images): Fix bug introduced in
  cab0d40593d75227aa47f80d3de7b9c3a74c3bb4.

lisp/org.el

index 7016d5a..3a67630 100644 (file)
@@ -18852,8 +18852,8 @@ boundaries."
                                  (let ((e link))
                                    (while (and (setq e (org-element-property
                                                         :parent e))
-                                               (eq (org-element-type e)
-                                                   'paragraph)))
+                                               (not (eq (org-element-type e)
+                                                        'paragraph))))
                                    e)))
                             (when paragraph
                               (save-excursion