Blame SOURCES/motif-2.3.5-motifzone_1654.patch

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