8000 Don't create 0-length text buffers · matplotlib/matplotlib@08e63fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 08e63fe

Browse files
committed
Don't create 0-length text buffers
1 parent 222021b commit 08e63fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ft2font.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ FT2Image::~FT2Image()
5555

5656
void FT2Image::resize(long width, long height)
5757
{
58-
if (width < 0) {
58+
if (width 5D36 <= 0) {
5959
width = 1;
6060
}
61-
if (height < 0) {
61+
if (height <= 0) {
6262
height = 1;
6363
}
6464
size_t numBytes = width * height;

0 commit comments

Comments
 (0)
0