mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
don't ignore line.top when aligning text
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1333 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -679,7 +679,8 @@ void TextViewer::alignLines(RotatedDC& dc, const vector<CharInfo>& chars, const
|
|||||||
-RealSize(style.padding_left+style.padding_right, style.padding_top + style.padding_bottom));
|
-RealSize(style.padding_left+style.padding_right, style.padding_top + style.padding_bottom));
|
||||||
if (style.paragraph_height <= 0) {
|
if (style.paragraph_height <= 0) {
|
||||||
// whole text box alignment
|
// whole text box alignment
|
||||||
alignParagraph(0, lines.size(), chars, style, RealRect(RealPoint(0,style.padding_top),s));
|
double top = lines[0].top;
|
||||||
|
alignParagraph(0, lines.size(), chars, style, RealRect(RealPoint(0,top),s));
|
||||||
} else {
|
} else {
|
||||||
// per paragraph alignment
|
// per paragraph alignment
|
||||||
size_t start = 0;
|
size_t start = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user