[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kotext/opendocument
From: Ganesh Paramasivam <ganesh () crystalfab ! com>
Date: 2010-11-18 9:44:17
Message-ID: 20101118094417.4D864AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1198402 by ganeshp:
Fix for bug 243923: Check whether we are working with an existing block (in which \
case this is actually a paste and so the pragraph style should not be applied) before \
setting a paragraph style
M +1 -1 KoTextLoader.cpp
--- trunk/koffice/libs/kotext/opendocument/KoTextLoader.cpp #1198401:1198402
@@ -433,7 +433,7 @@
QTextCharFormat cf = cursor.charFormat(); // store the current cursor char \
format
- if (paragraphStyle) {
+ if (paragraphStyle && (cursor.position() == cursor.block().position())) {
QTextBlock block = cursor.block();
// Apply list style when loading a list but we don't have a list style
paragraphStyle->applyStyle(block, d->currentList && !d->currentListStyle);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic