[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/koffice-essen/libs/kotext/styles
From: Sebastian Sauer <mail () dipe ! org>
Date: 2010-11-29 19:48:20
Message-ID: 20101129194820.6E7A6AC8A3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1202139 by sebsauer:
Ignore negative or invalid line-heights like OOWriter does too.
BUG:241016
M +4 -1 KoParagraphStyle.cpp
--- branches/work/koffice-essen/libs/kotext/styles/KoParagraphStyle.cpp #1202138:1202139
@@ -1112,7 +1112,10 @@
if (!lineHeight.isEmpty()) {
if (lineHeight != "normal") {
if (lineHeight.indexOf('%') > -1) { // percent value
- setLineHeightPercent(lineHeight.remove('%').toInt());
+ bool ok;
+ int v = lineHeight.remove('%').toInt(&ok);
+ if (ok && v > 0)
+ setLineHeightPercent(v);
}
else { // fixed value
setLineHeightAbsolute(KoUnit::parseValue(lineHeight));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic