]> git.lyx.org Git - features.git/commitdiff
Fix warning when using test with non-integer arguments.
authorAngus Leeming <leeming@lyx.org>
Tue, 3 Sep 2002 17:23:33 +0000 (17:23 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 3 Sep 2002 17:23:33 +0000 (17:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5199 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/scripts/lyxpreview2ppm.sh

index cb22810d9d9683a28a3017e9379ae6831e5ba580..95510a8ccbce22ebef03341b671046816490d608 100644 (file)
@@ -1,3 +1,8 @@
+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
index 3ad5144178ed82131015ada9eedfab75738ea865..0e0f1710be5b639c91b5cf37fa80191802ba15cc 100644 (file)
@@ -128,8 +128,12 @@ fi
 # 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