mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fix for older VS versions.
This commit is contained in:
parent
4cd58b54c0
commit
f34d1cdb3c
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ namespace DirectWriteTypeLayout
|
|||
TextLayout::Line* const newLine = new TextLayout::Line();
|
||||
layout->addLine (newLine);
|
||||
|
||||
if (! std::isnormal (baselineOriginY))
|
||||
if (! (baselineOriginY >= 0 || baselineOriginY <= 0))
|
||||
baselineOriginY = 0; // DirectWrite sometimes sends NaNs in this parameter
|
||||
|
||||
newLine->lineOrigin = Point<float> (baselineOriginX, baselineOriginY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue