Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37804876
en ru br
ALT Linux repos
S:2.3.8-alt1
5.0: 2.2.3-alt3.2
4.1: 2.2.3-alt3.1
4.0: 2.2.3-alt3.1
3.0: 2.2.3-alt2

Group :: System/Libraries
RPM: openmotif

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: openMotif-2.2.3-rh-vizcount.patch
Download


--- openMotif-2.2.3/lib/Xm/List.c.vizcount	2002-01-10 21:56:41.000000000 +0100
+++ openMotif-2.2.3/lib/Xm/List.c	2005-01-04 11:45:38.046987886 +0100
@@ -1432,8 +1432,11 @@
 	lineheight = 1;
     }
 
-  viz = ((int)(listheight + lw->list.spacing) /
-	 (int)(lineheight + lw->list.spacing));
+  if (lineheight + lw->list.spacing != 0)
+    viz = ((int)(listheight + lw->list.spacing) /
+	   (int)(lineheight + lw->list.spacing));
+  else
+    viz = (int)(listheight + lw->list.spacing);
 
   if (!viz)
     viz++;			/* Always have at least one item visible */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin