SHA256
1
0
forked from pool/xfig
xfig/xfig.3.2.5-zoom_fpe.dif

14 lines
548 B
Plaintext

Index: xfig.3.2.5/w_rulers.c
===================================================================
--- w_rulers.c
+++ w_rulers.c 2009-03-06 11:23:08.000000000 +0200
@@ -1149,7 +1149,7 @@ get_skip_prec(void)
/* look for values for current zoom */
if ((display_zoomscale/appres.userscale <= rs->max_zoom) ||
(rs->max_zoom == 0.0)) {
- skip = rs->skipt/appres.userscale;
+ skip = rs->skipt>appres.userscale ? rs->skipt/appres.userscale : 1;
skipx = skip * rs->skipx;
sprintf(precstr, "%%.%df", rs->prec);
break;