diff --git a/quack.sh b/quack.sh index 3ba43d9e705271d36710371d576502aa7bcc9fee..c9c7033a005587777068aa59c0cb076d63d8ad91 100755 --- a/quack.sh +++ b/quack.sh @@ -582,7 +582,7 @@ function processALTO() { local PHEIGHT=`echo $PTAG | sed 's/.*HEIGHT=\"\([^"]\+\)".*/\\1/g'` local PWIDTH=`echo $PTAG | sed 's/.*WIDTH=\"\([^"]\+\)".*/\\1/g'` ACCURACY=`echo $PTAG | sed 's/.*PC=\"\([^"]\+\)".*/\\1/g'` - ACCURACY=`echo "scale=2;$ACCURACY*100" | bc` + ACCURACY=`echo "scale=2;x=$ACCURACY*100/1; if(x<1) print 0; x" | bc` FULL_RELATIVE_HEIGHT=`echo "scale=6;$PHEIGHT/$PWIDTH" | bc | sed 's/^\./0./'` # TODO: Ponder how relative positioning works and why this hack is necessary