File: fix-tab-window-paddings.patch

package info (click to toggle)
blt 3.0~1%2B08570046%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 45,556 kB
  • sloc: ansic: 278,852; tcl: 96,434; sh: 3,410; makefile: 2,026; cpp: 374
file content (19 lines) | stat: -rw-r--r-- 593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Sergei Golovan
Subject: Patch fixes incorrect padding in a tabset
 (left and top padding double) because of incorrectly
 calculated cavity width and height.
Date: Tue, 01 Jul 2025 10:39:07 +0300
Forwarded: yes
Bug: https://sourceforge.net/p/blt/patches/45/

--- a/src/bltTabset.c
+++ b/src/bltTabset.c
@@ -2471,6 +2471,8 @@
         cavityWidth = Tk_Width(parent) - (2 * pad);
         cavityHeight = Tk_Height(parent) - (y + pad);
     }
+    cavityWidth -= PADDING(tabPtr->padX);
+    cavityHeight -= PADDING(tabPtr->padY);
     if (cavityWidth < 1) {
         cavityWidth = 1;
     }