Blame SOURCES/motif-2.3.5-motifzone_1654.patch

046a52
commit 33e0b7fd58ec8ce9fd23d3a66a91e9b4b7c2b928
046a52
Author: Oleksiy Chernyavskyy <ochern@ics.com>
046a52
Date:   Fri Jun 10 23:15:00 2016 +0300
046a52
046a52
    bug 1654 fix
046a52
046a52
diff --git a/lib/Xm/LabelG.c b/lib/Xm/LabelG.c
046a52
index b674041..726b095 100644
046a52
--- a/lib/Xm/LabelG.c
046a52
+++ b/lib/Xm/LabelG.c
046a52
@@ -35,6 +35,7 @@ static char rcsid[] = "$TOG: LabelG.c /main/24 1999/01/26 15:31:18 mgreess $"
046a52
 #include <config.h>
046a52
 #endif
046a52
 #define FIX_1517
046a52
+#define FIX_1654
046a52
 
046a52
 #include <string.h>
046a52
 #include <stdio.h>
046a52
@@ -2352,12 +2353,20 @@ LRectangle *background_box)
046a52
     if (LabG_StringRect(lw).width < availW - marginal_width)
046a52
     	width = LabG_StringRect(lw).width;
046a52
     else
046a52
+#ifdef FIX_1654
046a52
+    	width = availW - marginal_width;
046a52
+#else
046a52
     	width = availW - marginal_width - x;
046a52
+#endif
046a52
 
046a52
     if (LabG_StringRect(lw).height < availH - marginal_height)
046a52
     	height = LabG_StringRect(lw).height;
046a52
     else
046a52
+#ifdef FIX_1654
046a52
+    	height = availH - marginal_height;
046a52
+#else
046a52
     	height = availH - marginal_height - y;
046a52
+#endif
046a52
     
046a52
     XFillRectangle(XtDisplay(lw), XtWindow(lw), LabG_BackgroundGC(lw),
046a52
 		x, y, width, height);