1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 02:39:23 +02:00

no first line indent if align = center

This commit is contained in:
Nikolay Pultsin 2015-10-13 23:06:26 +01:00
parent c796220ada
commit 87ddf72ee1

View file

@ -1051,7 +1051,7 @@ public abstract class ZLTextView extends ZLTextViewBase {
final int maxWidth = page.getTextWidth() - storedStyle.getRightIndent(metrics()); final int maxWidth = page.getTextWidth() - storedStyle.getRightIndent(metrics());
info.LeftIndent = storedStyle.getLeftIndent(metrics()); info.LeftIndent = storedStyle.getLeftIndent(metrics());
if (isFirstLine) { if (isFirstLine && storedStyle.getAlignment() != ZLTextAlignmentType.ALIGN_CENTER) {
info.LeftIndent += storedStyle.getFirstLineIndent(metrics()); info.LeftIndent += storedStyle.getFirstLineIndent(metrics());
} }
if (info.LeftIndent > maxWidth - 20) { if (info.LeftIndent > maxWidth - 20) {