fix compile
This commit is contained in:
parent
fa7f6351fa
commit
b7a9d29dbc
1 changed files with 2 additions and 2 deletions
|
@ -219,10 +219,10 @@ pixel_position placement_finder::alignment_offset() const //TODO
|
|||
}
|
||||
|
||||
// set horizontal position to middle of text
|
||||
if (halign_ == H_LEFT)
|
||||
if (halign_point_ == H_LEFT)
|
||||
{
|
||||
result.x = -0.5 * layout_.width(); // move center left by 1/2 the string width
|
||||
} else if (halign_ == H_RIGHT)
|
||||
} else if (halign_point_ == H_RIGHT)
|
||||
{
|
||||
result.x = 0.5 * layout_.width(); // move center right by 1/2 the string width
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue