kopia lustrzana https://gitlab.com/sane-project/website
53 wiersze
2.2 KiB
HTML
53 wiersze
2.2 KiB
HTML
<!-- received="Mon May 12 08:21:23 1997 MST" -->
|
|
<!-- sent="Mon, 12 May 1997 07:58:30 -0700" -->
|
|
<!-- name="David Mosberger-Tang" -->
|
|
<!-- email="davidm@azstarnet.com" -->
|
|
<!-- subject="small preview fix" -->
|
|
<!-- id="199705121458.HAA05340@panda.mosberger" -->
|
|
<!-- inreplyto="" -->
|
|
<title>sane-devel: small preview fix</title>
|
|
<h1>small preview fix</h1>
|
|
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
|
|
<i>Mon, 12 May 1997 07:58:30 -0700</i>
|
|
<p>
|
|
<ul>
|
|
<li> <b>Messages sorted by:</b> <a href="date.html#140">[ date ]</a><a href="index.html#140">[ thread ]</a><a href="subject.html#140">[ subject ]</a><a href="author.html#140">[ author ]</a>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0141.html">Stefan Luettringhaus-Kappel: "Mustek Scanner distorted image lines"</a>
|
|
<li> <b>Previous message:</b> <a href="0139.html">David Mosberger-Tang: "Re: Q: Status of Microtek backend??"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|
|
<!-- body="start" -->
|
|
Here is a tiny fix that avoids a potential segfault during the preview<br>
|
|
(I'm surprised this bug hasn't shown its ugly head before).<br>
|
|
<p>
|
|
--david<br>
|
|
<p>
|
|
--- frontend/preview.c~ Sun May 4 18:13:47 1997<br>
|
|
+++ frontend/preview.c Mon May 12 07:43:07 1997<br>
|
|
@@ -233,7 +233,7 @@<br>
|
|
<br>
|
|
/* don't draw last line unless it's complete: */<br>
|
|
height = p->image_y;<br>
|
|
- if (p->image_x == 0)<br>
|
|
+ if (p->image_x == 0 && height < p->image_height)<br>
|
|
++height;<br>
|
|
<br>
|
|
/* for now, use simple nearest-neighbor interpolation: */<br>
|
|
<p>
|
|
<pre>
|
|
--
|
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
|
</pre>
|
|
<!-- body="end" -->
|
|
<p>
|
|
<ul>
|
|
<!-- next="start" -->
|
|
<li> <b>Next message:</b> <a href="0141.html">Stefan Luettringhaus-Kappel: "Mustek Scanner distorted image lines"</a>
|
|
<li> <b>Previous message:</b> <a href="0139.html">David Mosberger-Tang: "Re: Q: Status of Microtek backend??"</a>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
</ul>
|