[fbreader] Fixed a bug in ZLTextForcedStyle::lineEndIndent

This commit is contained in:
Slava Monich 2018-07-27 01:18:24 +03:00
parent bb587bd397
commit 139460734b

View file

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com> * Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
* Copyright (C) 2015 Slava Monich <slava.monich@jolla.com> * Copyright (C) 2015-2018 Slava Monich <slava.monich@jolla.com>
* *
* This program is free software; you can redistribute it and/or modify * 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 * 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; ZLTextStyleEntry::LENGTH_RIGHT_INDENT;
if (!myEntry.lengthSupported(lengthType)) { if (!myEntry.lengthSupported(lengthType)) {
return base()->lineStartIndent(metrics, rtl); return base()->lineEndIndent(metrics, rtl);
} }
const short baseLen = base()->lineEndIndent(metrics, rtl); const short baseLen = base()->lineEndIndent(metrics, rtl);