Skip to content
Snippets Groups Projects
Commit ee7fce63 authored by Richard Linden's avatar Richard Linden
Browse files

missed some cases in font valign switch

parent 6a870687
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,13 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, const LLRect& rect ...@@ -132,9 +132,13 @@ S32 LLFontGL::render(const LLWString &wstr, S32 begin_offset, const LLRect& rect
case VCENTER: case VCENTER:
y = rect.getCenterY(); y = rect.getCenterY();
break; break;
case BASELINE:
case BOTTOM: case BOTTOM:
y = rect.mBottom; y = rect.mBottom;
break; break;
default:
y = rect.mBottom;
break;
} }
return render(wstr, begin_offset, x, y, color, halign, valign, style, shadow, max_chars, rect.getWidth(), right_x, use_ellipses); return render(wstr, begin_offset, x, y, color, halign, valign, style, shadow, max_chars, rect.getWidth(), right_x, use_ellipses);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment