diff --git a/Common/Gfx/TextFormatD2D.cpp b/Common/Gfx/TextFormatD2D.cpp index 3f584e2b..1f367a70 100644 --- a/Common/Gfx/TextFormatD2D.cpp +++ b/Common/Gfx/TextFormatD2D.cpp @@ -56,7 +56,7 @@ void TextFormatD2D::CreateLayout(const WCHAR* str, UINT strLen, float maxW, floa if (maxH != m_TextLayout->GetMaxHeight()) { - m_TextLayout->SetMaxWidth(maxH); + m_TextLayout->SetMaxHeight(maxH); } } else