From ab68bef4e63b23d10d5c6839cc78ca0decfb981f Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Thu, 6 Aug 2015 00:18:15 +0300 Subject: [PATCH] [fbreader] Housekeeping Indentation --- .../zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp | 2 +- .../zlibrary/text/src/area/ZLTextArea_processTextLine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp index 4c59a2b..dffb857 100644 --- a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp +++ b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_prepareTextLine.cpp @@ -115,7 +115,7 @@ void ZLTextArea::prepareTextLine(Style &style, const ZLTextLineInfo &info, int y break; } // Fall through to center "justified" images - case ALIGN_CENTER: + case ALIGN_CENTER: x += (metrics.FullWidth - style.textStyle()->lineEndIndent(metrics, isRtl()) - info.Width) / 2; break; case ALIGN_UNDEFINED: diff --git a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp index 12ca758..11c7395 100644 --- a/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp +++ b/fbreader/fbreader/zlibrary/text/src/area/ZLTextArea_processTextLine.cpp @@ -135,7 +135,7 @@ ZLTextLineInfoPtr ZLTextArea::processTextLine(Style &style, const ZLTextWordCurs info.Width = info.StartIndent; if (info.RealStart.equalElementIndex(end)) { - info.End = info.RealStart; + info.End = info.RealStart; return infoPtr; }