1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/deskutils/xpostitPlus/files/patch-notes.c
David W. Chapman Jr. 61cb9d3231 Make not fail when width or height = 0
Bump PORTREVISION

PR:		23701
No Response:	maintainer
Submitted by:	dgilbert@velocet.ca
2001-08-31 02:12:31 +00:00

21 lines
559 B
C

*** note.c.orig Wed Dec 20 17:15:34 2000
--- note.c Wed Dec 20 17:20:15 2000
***************
*** 359,364 ****
--- 359,373 ----
}
}
+ /*
+ * The problem is that texth == 0 or textw == 0 causes an ungraceful exit.
+ * In this case, we set them all to a standard size.
+ */
+ if(texth == 0 || textw == 0)
+ {
+ texth = 169;
+ textw = 227;
+ }
/*
* Get the index number of this note.