mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
no first line indent if align = center
This commit is contained in:
parent
c796220ada
commit
87ddf72ee1
1 changed files with 1 additions and 1 deletions
|
@ -1051,7 +1051,7 @@ public abstract class ZLTextView extends ZLTextViewBase {
|
|||
|
||||
final int maxWidth = page.getTextWidth() - storedStyle.getRightIndent(metrics());
|
||||
info.LeftIndent = storedStyle.getLeftIndent(metrics());
|
||||
if (isFirstLine) {
|
||||
if (isFirstLine && storedStyle.getAlignment() != ZLTextAlignmentType.ALIGN_CENTER) {
|
||||
info.LeftIndent += storedStyle.getFirstLineIndent(metrics());
|
||||
}
|
||||
if (info.LeftIndent > maxWidth - 20) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue