1
0
Fork 0
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:
jules 2014-01-27 13:21:43 +00:00
parent 4cd58b54c0
commit f34d1cdb3c

View file

@ -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);