]> git.eshelyaron.com Git - emacs.git/commitdiff
(dframe-frame-mode): Don't burp when menu-bar-lines is nil.
authorNick Roberts <nickrob@snap.net.nz>
Wed, 1 Mar 2006 22:59:06 +0000 (22:59 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 1 Mar 2006 22:59:06 +0000 (22:59 +0000)
lisp/dframe.el

index e238a469dd50ed457737e2d474509f0b6784db4f..f77a5059026b49e919ea25e5dc3c5a8fbae9e45c 100644 (file)
@@ -422,7 +422,7 @@ CREATE-HOOK are hooks to run after creating a frame."
                            parameters
                          (append
                           parameters
-                          (list (cons 'height (+ mh (frame-height)))))))
+                          (list (cons 'height (+ (or mh 0) (frame-height)))))))
                       (params
                        ;; Only add a guessed width if one is not specified
                        ;; in the input parameters.