Blame SOURCES/motif-2.3.5-motifzone_1654.patch

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