[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkoffice=5D_libs/kotext=3A_Fixing_the_call_to_KoInli?=
From: Ganesh Paramasivam <ganesh () crystalfab ! com>
Date: 2011-03-11 13:36:58
Message-ID: 20110311133658.ED6AEA609B () git ! kde ! org
[Download RAW message or body]
Git commit f5735ef3512a9810b18bb952ab6d1f9f9bce6389 by Ganesh Paramasivam.
Committed on 11/03/2011 at 14:36.
Pushed by ganeshp into branch 'master'.
Fixing the call to KoInlineObject::setTextPosition() as it is called after the \
insertion of Object Replacement Character
M +1 -1 libs/kotext/KoInlineTextObjectManager.cpp
http://commits.kde.org/koffice/f5735ef3512a9810b18bb952ab6d1f9f9bce6389
diff --git a/libs/kotext/KoInlineTextObjectManager.cpp \
b/libs/kotext/KoInlineTextObjectManager.cpp index 198d289..6583908 100644
--- a/libs/kotext/KoInlineTextObjectManager.cpp
+++ b/libs/kotext/KoInlineTextObjectManager.cpp
@@ -64,7 +64,7 @@ void KoInlineTextObjectManager::insertInlineObject(QTextCursor \
&cursor, KoInline m_objects.insert(m_lastObjectId, object);
object->setManager(this);
object->setDocument(cursor.document());
- object->setTextPosition(cursor.position());
+ object->setTextPosition(cursor.position() - 1);
object->setup();
if (object->propertyChangeListener()) {
m_listeners.append(object);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic