]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix misreporting of window top line
authorPo Lu <luangruo@yahoo.com>
Fri, 14 Jul 2023 07:33:48 +0000 (15:33 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 14 Jul 2023 07:33:48 +0000 (15:33 +0800)
* src/frame.h (FRAME_TOOL_BAR_TOP_LINES): Return tool_bar_lines,
not tool_bar_height.

src/frame.h

index 44eefa357fc1f8d2201ac4d919f6564dde200d32..12a3c460a5fa6ae64c32b42021fb134307464123 100644 (file)
@@ -1003,7 +1003,7 @@ default_pixels_per_inch_y (void)
 
 #define FRAME_TOOL_BAR_TOP_LINES(f)                    \
   ((BASE_EQ ((f)->tool_bar_position, Qtop))            \
-   ? (f)->tool_bar_height : 0)
+   ? (f)->tool_bar_lines : 0)
 
 /* Size of F's tool bar if it is placed at the bottom of the
    frame.  */