summaryrefslogtreecommitdiff
path: root/x11-toolkits/xview/files/patch-lib+libolgx+ol_button.c
blob: d4e0b87ffb837ba9b558574a31c7fe3358070c45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- lib/libolgx/ol_button.c.orig	Mon Sep 29 00:02:39 2003
+++ lib/libolgx/ol_button.c	Mon Sep 29 00:02:39 2003
@@ -241,8 +241,12 @@
 				   x + ((centerx > 0) ? centerx : 0),
 				   y + ((centery > 0) ? centery : 0),
 				   (((Pixlabel *) label)->width > width)? 
-                                               width:((Pixlabel *)label)->width ,
-				  (height) ? height : Button_Height(info) - 2, state);
+						width:((Pixlabel *)label)->width ,
+				  (height) ? 
+				   ((((Pixlabel *) label)->height > height) ? 
+						 height : ((Pixlabel *)label)->height)
+ 					: Button_Height(info) - 2, state);
+ 
 	} else if (state & OLGX_LABEL_IS_XIMAGE) {
 
 	    int             centerx, centery;
@@ -255,7 +259,10 @@
 				   y + ((centery > 0) ? centery : 0),
 				   (((Pixlabel *) label)->width > width)? 
                                                width:((Pixlabel *)label)->width ,
-				  (height) ? height : Button_Height(info) - 2, state);
+				  (height) ? 
+				   ((((Pixlabel *) label)->height > height) ? 
+					       height : ((Pixlabel *)label)->height)
+					: Button_Height(info) - 2, state);
        } else {