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