+2002-09-03 Angus Leeming <leeming@lyx.org>
+
+ * scripts/lyxpreview2ppm.sh: test expects integer arguments.
+ ${RESOLUTION} may be a float. Truncate it.
+
2002-09-03 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_218.py (update_tabular): Prevent changing
# PostScript -> Bitmap files
# Older versions of gs have problems with a large degree of anti-aliasing
# at high resolutions
+
+# test expects integer arguments. ${RESOLUTION} may be a float. Truncate it.
+INT_RESOLUTION=`echo "${RESOLUTION} / 1" | bc`
+
ALPHA=4
-if [ ${RESOLUTION} -gt 150 ]; then
+if [ ${INT_RESOLUTION} -gt 150 ]; then
ALPHA=2
fi