[fbreader] Fixed a bug in ZLTextForcedStyle::lineEndIndent
This commit is contained in:
parent
bb587bd397
commit
139460734b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue