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