mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-30 06:12:22 -06:00
Merge branch 'master' of https://github.com/ultimatepp/ultimatepp
This commit is contained in:
commit
1dfeaeabc4
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ bool HasPainter()
|
|||
|
||||
Image RenderGlyphByPainter(Point at, int angle, int chr, Font fnt, Color color, Size sz)
|
||||
{
|
||||
return sRG ? (*sRG)(at, angle, chr, fnt, color, sz) : Image();
|
||||
return sRG && sz.cx > 0 && sz.cy > 0 ? (*sRG)(at, angle, chr, fnt, color, sz) : Image();
|
||||
}
|
||||
|
||||
void PaintImageBuffer(ImageBuffer& ib, const Painting& p, Size sz, Point pos, int mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue