From 139460734b9402dd9ce34f96685dbcf0e16056ee Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 27 Jul 2018 01:18:24 +0300 Subject: [PATCH] [fbreader] Fixed a bug in ZLTextForcedStyle::lineEndIndent --- .../fbreader/zlibrary/text/src/style/ZLTextDecoratedStyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbreader/fbreader/zlibrary/text/src/style/ZLTextDecoratedStyle.cpp b/fbreader/fbreader/zlibrary/text/src/style/ZLTextDecoratedStyle.cpp index 028abb7..60f5315 100644 --- a/fbreader/fbreader/zlibrary/text/src/style/ZLTextDecoratedStyle.cpp +++ b/fbreader/fbreader/zlibrary/text/src/style/ZLTextDecoratedStyle.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2004-2010 Geometer Plus - * Copyright (C) 2015 Slava Monich + * Copyright (C) 2015-2018 Slava Monich * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -220,7 +220,7 @@ short ZLTextForcedStyle::lineEndIndent(const ZLTextStyleEntry::Metrics &metrics, ZLTextStyleEntry::LENGTH_RIGHT_INDENT; if (!myEntry.lengthSupported(lengthType)) { - return base()->lineStartIndent(metrics, rtl); + return base()->lineEndIndent(metrics, rtl); } const short baseLen = base()->lineEndIndent(metrics, rtl);