This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[Patch] Fix Windows label problems.
- To: insight at sources dot redhat dot com
- Subject: [Patch] Fix Windows label problems.
- From: Ian Roxborough <irox at redhat dot com>
- Date: Mon, 15 Oct 2001 23:08:29 -0700
Hi,
After some searching I found a fix to the current squished
label problems on Windows. It stems from a Windows look
and feel patch which was missing a line.
Ian.
2001-10-15 Ian Roxborough <irox@redhat.com>
* win/tkWinButton.c (TkpComputeButtonGeometry):
Windows look and feel fix modified to leave
labels alone.
Index: win/tkWinButton.c
===================================================================
RCS file: /cvs/src/src/tk/win/tkWinButton.c,v
retrieving revision 1.2
diff -u -r1.2 tkWinButton.c
--- tkWinButton.c 2001/09/10 01:16:55 1.2
+++ tkWinButton.c 2001/10/16 05:51:32
@@ -732,7 +732,7 @@
if (butPtr->type == TYPE_BUTTON) {
height = butPtr->height * fm.ascent;
- } else {
+ } else if (butPtr->height > 0) {
height = butPtr->height * fm.linespace;
}