Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #276423: custom alignment of textline lost #3985

Merged

Conversation

jthistle
Copy link
Contributor

@@ -1406,7 +1406,7 @@ const TextStyle textLineTextStyle {{
{ Sid::textLineFontBold, Pid::BEGIN_FONT_BOLD },
{ Sid::textLineFontItalic, Pid::BEGIN_FONT_ITALIC },
{ Sid::textLineFontUnderline, Pid::BEGIN_FONT_UNDERLINE },
{ Sid::defaultAlign, Pid::ALIGN },
{ Sid::textLineTextAlign, Pid::ALIGN },
{ Sid::defaultOffset, Pid::OFFSET },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to replace defaultOffset with textLineTextOffset as well? Could you please describe the purpose of these settings to keep it for history?

Copy link
Contributor Author

@jthistle jthistle Sep 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, didn't realise that there was a specific one for defaultOffset as well - I'll replace that That's because there isn't a Sid called textLineTextOffset. Basically, most elements have generic defaultAlign and defaultOffset Sids, but the TextLine element maps the ALIGN pid to the more specific textLineTextAlign Sid. It seems like someone just copied and pasted this section without realising that for a TextLine, the ALIGN Pid is mapped to textLineTextAlign, not defaultAlign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants